Creating a page which displays images from a folder

Hey there guys.. Im trying to create a page which first gets all the images (Such as 001.jpg, 002.jpg.. etc) out of a folder, then it displays one of them depending on what the person put in their url.. as if I put photos.php?image=002, it would display 002.jpg.. and so on and so forth..

I also need dyanmic next and previous links for it to go to 003.jpg (if it is on 002) and back to the previous one.. being 001.jpg.

Have you searched the forums? There are a hundred examples of how to do things like that. And have you tried anything at all? I suggest posting some code and letting us know where you're getting stuck. No one is going to write it for you.