I have to get multiple images (6 images) on rows and columns on my website.
Basicly I have a while loop that gets the blob stored image from the MySQL DB - at the moment the loop only displays the images in one row.
I need it to go to the next row after six images are displayed.
Would I need an array for this as I do not see how it can be done with loops.
echo "<div id='products_div'>";
echo "<table>";
while ($f = mysql_fetch_array($filelist))
{
echo "<td>";
echo "<div id='product_background'>";
echo "<a href='products.php?id=".$f['id']."'><img style='text-decoration: none; border: 0px; padding-left: 8px; padding-top: 8px;' src='image.php?id=".$f['id']."' alt='Error - no image in DB' width='98' height='98'>";
echo "<div id='product_link'>";
echo $f['description'];
echo "</div>";
echo "</a>";
echo "</div>";
echo "</td> ";
}
echo "</table>";
echo "</div>";
Cheers anyone