Menu
Hi,
I have used glob to display all the jpg’s from a dir.
Is there a way i can add pagenation to this?
there are something close to 500 photos(Thumbs) which is too much for one page.
[url]http://lendrum.co.nz/wedding/
[code=php]
<?php
$dir = “./thumbs/”;
$full = “./”;
foreach (glob(“*.jpg”) as $file) {
echo(“<li><a href=”image.php?show=”.$full. $file.””><img src=””.$dir.$file.”” alt=”” /></a></li>”.”n”);
}
?>