Page 1 of 1

Pagination for a single record

Posted: Wed Jul 28, 2010 11:14 am
by boba fett
I am having a problem applying pagination to my page when I only have one record displayed. I would like to have it set up to where one record is followed by the next one in the list. I have tried several ways but they are for whole tables moving to the next page. I think I am missing something small but not sure. Any help will be greatly appreciated, thanks.

Re: Pagination for a single record

Posted: Wed Jul 28, 2010 12:03 pm
by Jade
What kind of keys do you have on the table? Are you using an auto_incremental ID? If so you can just have something where you add 1 or subtract 1 to the current ID to get the ID of the next and previous records.