Okay, I got this far.
<?php
echo '<td>';
for ($i = 1; $i <= 202; ++$i)
{
echo '<img src="directory/' . $i . '.jpg"><br />' . "\n";
}
echo '</td>';
?>
Basically, I need to make a mini-image gallery with images in the directory "directory/" and the file names are 1.jpg, 2.jpg, 3.jpg, etc. up to 202.jpg.
I need to start a new row every--say five--TDs in my table and I don't know how to do that. Also, I'd like to separate them into pages so the page doesn't load 202 images. Then I could link to them on the bottom, e.g.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
That may sound confusing. Any help?