I’m not sure how to ask this so i am having a hard time finding answers online… here is something like what I want:
SELECT id FROM table ORDER date DESC LIMIT 20, 30 [start after X id]
… so the deal is that I am making a paging system… the only problem is that if someone clicks on to page 2 in theory a new entry could have been made pushing the order back so the person could see the last entry of the first page as the first entry on the second page if a new entry has been made since clicking page 2.
What I want is to be able to still limit but tell my limit… hey give me the next 20 after this ID ok? thanks mysql lol.
But yeah sorry if this question is hard to follow like I said its hard for me to put into words what I want so I am having a hard time finding an answer.
Add a
WHEREclause to your SQL Statement