Hi,
If you order the names of the files in the folder by reading the directory (Using readdir(), and place each filename in an array, you can then order the array (use the sort command), and display them by extracting only a part of the array: Use an dynamic index $i which runs from 20-30 from the next page eg": <img src=\"$files[$i]\"> then it would work too, along the same lines as the script for a dbase would work. Your lihnks would ahve a start position defined, and you would have in your script the number of images per page. You can then read the files from $i=$start untill $i = $start+$maxNumber.
But I must admit.. I was assuming you used a DB. This makes it more of a challenge
;-)