while($entry=$d->read()) {
if($entry[0] != ".") {
echo "<a href="" . $d->path . $entry . "">$entry</a><br>n";

Ok i have the following code which works the way i want it to but i want to be able to display one picture and having <next> <previous> links at the bottom. how can i go about doing this other than initially putting everything into an array and then just using the array in subsequent calls.