php adding empty rows/spacing???
Posted: Sun Aug 17, 2008 1:54 pm
I have created a CMS section for my site but for some reason am finding that empty rows are being added to the page. Whenever I add a new item in the CMS page the content will move down the page a fraction. On the pages where I have a number of items displayed there is therefore a massive gap between the header and the start of the content. Does anyone know what could cause this? I've included the coding below for everything that is within the content section. It would be really good to know what causes things like this.
Cheers
Russ
Code: Select all
<div id="content">
<table width="470">
<tr valign="top"><td width="290"><div align="center"><strong>TITLE</strong></div></td><td width="180"><div align="center"><strong>ACTION</strong></div></td></tr>
<?php
include("../lib/config.php");
$result = mysql_query("SELECT * FROM suppliers_uk ORDER BY name ASC",$connect);
while($myrow = mysql_fetch_array($result))
{
echo "<tr><td><b>";
echo $myrow['name'];
echo "</b><br />";
echo $myrow['description'];
echo "</td><td><br /><a href=\"read_more.php?id=$myrow[id]\">Read More</a>
| <a href=\"edit.php?id=$myrow[id]\">Edit</a>
| <a href=\"delete.php?id=$myrow[id]\">Delete</a></td></tr><br />";
}
?>
</table>
<br /><br />
<div align="center">
<a href=index.php>Home</a> | <a href=add.php>Add Supplier</a>
</div>
</div>Russ