Hi,
I have:
$dirHandle=opendir('c:\phpdev\www\starinthecar\gallery\spgm\gal\Gallery');
while ($file = readdir($dirHandle))
{
if ((stristr($file, ".jpg")) XOR (stristr($file, "thb")) XOR (stristr($file, ".jpg.cmt")))
{
echo "<center><table border=1 width=300><tr><td width=100><font face=arial size=2><a href=./comments.php?filename=",$file,"><img src=../gallery/spgm/gal/Gallery/thb",$file,"></A></font></td><td width=200><font face=arial size=2>",$file,"</font></tr></table></center>";
}
}
closedir($dirHandle);
which looks through a directory for specific image types and displays them in a table.
What I need to do is to limit the number displayed to 5 images and then add a link for next to go to the next page, displaying thumbnails 6 - 10, etc.
I have tried to use some for loops but all I seem to get is 5 images of each thumbnail.
Could anyone pint out the error of my ways. The site "should" be live tomorrow.
Just some pointers required, happy to try to work it out myself
Thanks in advance.