I thought I had this resolved but I was wrong. I am having trouble implementing my coding to work with the desired results. I am calling up a total of ten thumbnail images to appear in a table. I would like these to be in two rows of five. The code below will produce the thumnail images in a table, but all ten are in one row. How can I break this up so that after five images it will start a new row? Here is the code I am using now to show the thumbnails.
$query = "SELECT * FROM images limit 0,10";
// execute the query
$result = mysql_query($query);
// get the number of results
$num_rows = mysql_num_rows($result);
// start the results table
?>
<table border="0" cellpadding="4"><tr>
<?php
for ($i=0; $i<$num_rows; $i++){
// fetch row
$img_info = mysql_fetch_array($result);
// start table row
echo '<td valign=\"bottom\">';
// generate the image tag
echo img_tag($img_info["img_file"], array("x"=>"100", "y"=>"100"));
echo "</a></td>";
}
?>[/COLOR]
</tr></table>