Answer the question
In order to leave comments, you need to log in
SQL. How to "find out the next" line?
Look, there is a "files" table. For example, it has 2 fields: id (auto-increment) and name.
For example, the user is looking at a file with id - 2. I need to implement the "Next File" and "Previous File" buttons.
But I don't know how to do this, since over time id can be scattered (for example, the file was deleted).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question