Let's say I have a query: SELECT * FROM table In this scenario I could get the id and and -1 or +1 the id to get the next or previous row.
But if I have SELECT * FROM table WHERE name LIKE ..... I would get several rows and they wouldn't be order by id, how would i be able to get the next or previous row?
My objective is creating a galleri that has a next and previous button with a link to the next or previous image.
This galleri can be ordered and sorted in many different ways.
Is it possible to detect which row is the next or previous in this scenario?