Ok, I'm working on a client's site and he does photography. I've got the thumbs sorted out, and when you click one, it views it and there needs to be a link there that goes to the following row after the current one.
I need a dynamic way of doing this in case certain rows get removed from the DB completely so as not to break anything.
Right now I'm using this:
<a href="view.php?id=<?= $id+1; ?>">Next</a>
And would like a dynamic function to grab the row that follows the current one.
Thanks!