I am currently creating a forum with php and sql. My problem is how to get the topics into the right order assuming that there are a total of 200 and 15 per Page and I'm on page number 10.
I can't select per id because if someone posts into one of these topics the timestamp of that specific topic gets updated -> the newest on top.
For the first page something like that could be okay:
select * from topics order by time desc limit 15
but for the next page I would need the timestamp of the last topic on the page before.
If I could select a specific table by index relative to the timestamp order without the need for the actual index.