Hi all,

I want to add links to a details page that will go to the very next, or previous, record in the db.

All I've found are the pagination examples, but I don't see how that will work because the page has already called a specific ID/primary key and is not looking for a set number of results to be displayed.

I just need to pull the previous and next id's out of the DB to put in the links.

Any pointers on what I should be searching for in order to accomplish this would be grand.
Thanks!