Jump to content

Recommended Posts

Posted

Hi

 

I have a .php page that shows a table populated by a database. In Chrome the table looks fine, but in IE (8) & Mozilla any blank cells have no borders, which makes reading the info a bit tricky. I'm sure it's something simple, but I can't find any reference to this specific problem.

 

The page is http://www.dunwoodpark.com/groups.php, and the code I'm using is :

 

<?php

mysql_connect(localhost, "*******", "********") or die(mysql_error());

mysql_select_db("*******") or die(mysql_error());

$result = mysql_query('SELECT org, website, position, Title, firstname, Surname, date FROM Dunwood WHERE `org`!="" AND `org`!="NULL" ');

echo "

Organisation

Website

Position

Title

Firstname

Surname

Date

";

while($row = mysql_fetch_array($result))

{

echo "

echo "

" . $row['org'] . "";

echo "

" . $row['website'] . "";

echo "

" . $row['position'] . "";

echo "

" . $row['Title'] . "";

echo "

" . $row['firstname'] . "";

echo "

" . $row['Surname'] . "";

echo "

" . $row['date'] . "";

echo "

";

}

echo "

";

mysql_close();

?>

Posted (edited)

I'm using a form to populate the MySQL database. Is there a way I can put a space into those fields by default so if the person who completes the form doesn't enter any data, it will add space by automatically?

Edited by oohrogerpalmer

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...