Thanks Leatherback. I hate to be an inconvenience, I really appreciate the help. I've been working on this all day again. I just cannot seem to troubleshoot this one out. Below I have posted the minor changes I've made to the code. I've made all borders='1' and have changed the problem cells to pink.
The actual page can be viewed here:
http://www.bumbleberrygifts.com/system/13/browse_category.php
I probably should have posted this earlier but I'm also including the header and footer.
Header:
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Bumbleberrymaincenteredflat.psd) -->
<table id="Table_01" width="801" height="188" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td colspan="18">
<img src="images/home.jpg" width="801" height="140" alt=""></td>
</tr>
<tr>
<td colspan="14">
<img src="images/blank_01.jpg" width="579" height="34" alt=""></td>
<td colspan="2">
<a href = "http://www.bumbleberrygifts.com/system/13/view_cart.php"><img src="images/cart.jpg" width="75" height="34" border="0" alt=""></a></td>
<td>
<img src="images/about.jpg" width="66" height="34" alt=""></td>
<td>
<img src="images/contact.jpg" width="81" height="34" alt=""></td>
</tr>
<tr>
<td colspan="18">
<img src="images/blank_02.jpg" width="801" height="14" alt=""></td>
</tr>
</body>
</html>
Middle:
include_once ('header.html');
// Are we looking at a particular artist?
if (isset($_GET['aid'])) {
$query = "SELECT * FROM category, product WHERE category.category_id = product.category_id AND category.category_name='Fish' AND product.category_id = {$_GET['aid']} ORDER BY product.item_name";
} else {
$query = "SELECT * FROM category, product WHERE category.category_id = product.category_id AND category.category_name='Fish' ORDER BY category.category_name ASC, product.item_name ASC";
}
echo '<body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="801" link="#ffffff" height="651" border="1" cellpadding="0" cellspacing="0" align="center" bgcolor ="#fffff">
<tr><td rowspan="1" border="1">
<img src="images/links_01.jpg" width="107" height="651" valign="top" alt=""></td>
<td colspan="0" rowspan"6" border="1">
<img src="images/blank_03.jpg" width="12" height="651" valign="top" alt=""></td>
';
// Display all the URLs.
$rowNum = 0;
$result = mysql_query ($query);
//echo "<table><tr>";
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
if($rowNum > 3)
{
$rowNum = 0;
echo "<tr rowspan='1'></tr>";
}
//Display each record.
echo "<td bgcolor='pink' rowspan='1' colspan='0' border='1' width='691' height='154' valign='top' align='left'><a href='view_print.php?pid=".$row['product_id']."'><img src='uploads/".$row['image_name']."' alt='".$row['item_name']."'></a><br /><div align='left'>\$".$row['price']."</div></td>";
$rowNum++;
}
mysql_close(); // Close the database connection.
include_once ('footer.html'); // Require the HTML footer.
?>
Footer:
<tr>
<td colspan="18">
<img src="images/bottom_01.jpg" width="801" height="159" align="right" alt=""></td>
</tr>
</table>
</body>
</html>
Argh!