I'm trying to add a "next event"-link om my website that holds a lot of different party-events in my area.
My problem is that I use an autoincrement-id in my event-table, and therefore the next event doesn't always hold (currentID+1) as its eventID. What I'm trying to say is that the next event after this event: showevent.php?eventid=14 could be showevent.php?eventid=18....
In ASP I know there is such a thing as rs(recordset).moveNext or something like that, and my Question is if there is an option similar to this in php/mysql....
...I know I can solve my problem by doing new selects on each presence of showevent.php
"SELECT * FROM Events WHERE eventID > currentID ORDER BY eventID ASC LIMIT 1";
but I wonder out of curiousity(and effeciency) if there is an easier way to do this??
Help would be much appreciated.