Here's a simple page I put together when I was first learning that displayed 5 pics per page. Get rid of the <p> tags, change the loop numbers, add an outside loop......oh, well, you should be able to get the idea...brush it up and it might work for you. The /table tag just closed one open from the header. I just copied it as 'pics1.html,' pics2.html, etc., I think there were about 50 total. These days I'd try to make it more sophisticated, but at this site, which has lots of user pics, we ended up just putting in Gallery®.
<?php
$x = $n = 1;
$next = 1;
$PageTitle = "Pictures #$n";
include "header.html";
?>
</table>
<?php
while ($x <= 5) {
echo ("<p><img src=\"/images/$x.jpg\"></p>");
$x++;
}
if ($n > 1) { ($previous = $n-1); } else { ($previous = 1); }
$next++;
echo "<br><br><strong><a href=\"pics$previous.html\">Previous Page</a>";
echo "<a href=\"pics$next.html\">Next Page</a>";
include "footer.html";
?>
HTH, dalecosp 🙂