Previous/Next PHP
Previous/Next PHP
Out of context: Reply #9
- Started
- Last post
- 10 Responses
- ldww0
I am not sure I understand your question, it seems quite easy, all you need to know is the current image number and the total amount of images. May take an additional query to count the images in the db.
if current greater then 1, display previous link
if current less then total, display next link as current + 1