[eluser]Michael Wales[/eluser]
You could use the pagination class, but it's more designed for larger sets of data.
I assume you are returning the ID of the current record, possibly it's a URI segment? I would make 2 methods in my model get_nextID() and get_prevID().
Those two functions would receive the current ID as a parameter, then query the database and return the URL for editing of the corresponding record.
Get it working with the anchor() tags first - ignore buttons, that is prettiness getting in the way of functionality for the time being.
Once you have it working with anchor() tags, then move on to the buttons - which would simply be button tags with some JavaScript hijacking to process the form correctly.