I have created a simple website using PHP that displays products from a database. It has been working fine as a list. Now I am trying to make it into a 3 column table and I don't know what I am doing.
I am looking for someone to take the code that I have made so far and make it display the items in the database in a dynamic 3 column table.
## Deliverables
This is my unworking code so far:
<?php do { ?>
<table width="100%" border="0">
<tr>
<td height=133 width=160 align=center>
<a href="[login to view URL]<?php echo $row_rsResults['productID']; ?>&vendID=<?php echo $row_rsResults['vendorID']; ?>">
<img border=2 bordercolor="#000000" src="<?php echo $row_rsResults['image']; ?>" height=133 />
</a>
<br />
<span class="style6"><?php echo $row_rsResults['productName']; ?></span></td>
<td height=133 width=160 align=center>
<a href="[login to view URL]<?php echo $row_rsResults['productID']; ?>&vendID=<?php echo $row_rsResults['vendorID']; ?>">
<img border=2 bordercolor="#000000" src="<?php echo $row_rsResults['image']; ?>" height=133 />
</a>
<span class="style6"><?php echo $row_rsResults['productName']; ?></span></td>
</tr>
</table>
<?php } while ($row_rsResults = mysql_fetch_assoc($rsResults)); ?>