[eluser]codex[/eluser]
Is there an easy way to get the id of the record before and the record after the current id? It's for a small picturebrowser kinda like Twitpic.
I'd say: get array with picture id's, find which one is current, then select the id before and the id after that in the array.
How would you go about this? My way seems very inefficient, especially if you have a lot of pictures.
Help appreciated!
EDIT: Never mind. Should have Googled first