How To Create AJAX Pagination without any php classes. I don't know what is pagination.class.php class. But, is it important, can't we paginate without it. I've googled and only found with pagination class. So, Please Help Me. Sorry, for no code
CodePudding user response:
The logic is very simple actually you can write your own pagination code. First of all, when the page is loaded, you need to know the total number of data in the table, so you can find how many data you want to show on each page by dividing it by that number.
Ex: 5000 (total data) / 25 showing(each page)
5000 / 25 = 200 pages
Imagine: You made a button as 1 - 2 - 3 - 4 ....
When each number button is clicked, you update the list by sending the limit value with ajax. For example: data.php?page=2
It's that simple :)