Hi all,
I have a mysql table contains products info, such as product image and code. I'm tring to display them in a html table, and I need to put three different products in one table row, then another three products in the second table row, and so on.
Obviously it will display the same product three times in one table row, but how to display different products in one row please?PHP Code:<?php
while ($list = mysql_fetch_assoc($result)) {
?>
<TR>
<TD>
<a href="images/<?php echo $list['image']; ?>.JPG" rel="lightbox" title="Ba <?php echo $list['itemcode'];?>"><IMG SRC="images/a_<?php echo $list['image']; ?>.JPG" ><BR> View Larger Image</a>
<BR><?php echo $list['itemcode'];?>
</TD>
<TD>
<a href="images/<?php echo $list['image']; ?>.JPG" rel="lightbox" title="Ba <?php echo $list['itemcode'];?>"><IMG SRC="images/a_<?php echo $list['image']; ?>.JPG" ><BR> View Larger Image</a>
<BR><?php echo $list['itemcode'];?>
</TD>
<TD>
<a href="images/<?php echo $list['image']; ?>.JPG" rel="lightbox" title="Ba <?php echo $list['itemcode'];?>"><IMG SRC="images/a_<?php echo $list['image']; ?>.JPG" ><BR> View Larger Image</a>
<BR><?php echo $list['itemcode'];?>
</TD>
</TR>
<?php
}
?>
Many thanks!







Bookmarks