I'm creating a photo gallery. The file name and path to the file are all stored on MySQL database. Once I receive an ID on which thumbnail the user click, I display the full image on the page. I got the display worked out but I want to implement the Next and Previous button on this page so the user can click on these two buttons to move around instead of going back to the thumbnails. Once there is no next or previous picture, I want to disable the button. How do I go about doing this?
Any help is appreciated!
ljCharlie