I want some help regarding PHP and MYSQL. What I'm trying is to create pagination system but with ORDER in a field value. Like I'm fetching 700 rows initially, afterward I want next 700 rows with the same order excluding the previous rows.
Here is my query:
$sql = "SELECT * FROM table WHERE user LIKE '%$user%' ORDER BY points DESC LIMIT 700";
Now, I want the next 700 rows excluding the ones I got in the first request. Same goes if user requests page 3rd and get 700 records excluding first 1400(700*2) records.
Thanks :)