Pagination for a single record
Moderator: General Moderators
Pagination for a single record
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
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.