Topic: IE8 v Chrome - cell border problem

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 "<table border='1'>
<tr>
<th>Organisation</th>
<th>Website</th>
<th>Position</th>
<th>Title</th>
<th>Firstname</th>
<th>Surname</th>
<th>Date</th>
</tr>";
while($row = mysql_fetch_array($result))
  {
  echo "<tr>";
  echo "<td>" . $row['org'] . "</td>";
  echo "<td>" . $row['website'] . "</td>";
  echo "<td>" . $row['position'] . "</td>";
  echo "<td>" . $row['Title'] . "</td>";
  echo "<td>" . $row['firstname'] . "</td>";
  echo "<td>" . $row['Surname'] . "</td>";
  echo "<td>" . $row['date'] . "</td>";
  echo "</tr>";
  }
echo "</table>";
mysql_close();
?>

Vote up Vote down

Re: IE8 v Chrome - cell border problem

Try populating your empty cells with &nbsp; that should show the borders around them

Vote up Vote down

Re: IE8 v Chrome - cell border problem

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?

Last edited by oohrogerpalmer (August 14, 2009 10:40 am)

Vote up Vote down