Hi every one, I have this code:
<table border="1">
<tr>
<?php
$i = 1;
while ($row = mysql_fetch_assoc($Gallery)) {
echo "\t<td><img src=../gallery/". $row['SM_Image'] .">" . $row['Title'] . "</td>\n";
if (($i++ % 4) == false) {
echo "</tr>\n<tr>\n";
}
}
?>
</tr>
</table>
You can see it "not working properly" here: http://www.paff.org/paff2/html/photo_gallery.php
There are a total of 8 entries but only seven show up, the first enry does not show. I'm new at this and I have no idea what's wrong, can some one help me? Also the second row does not have the last <td></td> on the last column. Any help would be greatly appreciated.
Thanks.