Cesar Aracena
asked on
How to make a good PHP + MySQL + JS pagination system?
Hi guys,
I'm making a fast food site where I'm using tabs to show different food categories. The tab's titles are fetched from MySQL (food categories - pizza, hamburgers, etc).
Inside each tab, I want to make a pagination system (so 100 types of pizza are not displayed at once). Paginating items is not difficult but in this case, "next page" shouldn't load a new page but only new items... so I'm guessing javascript is needed.
What would be a good and stable approach to this? Any examples out there? I found some but none exactly what I'm looking for.
Thanks in advance!
I'm making a fast food site where I'm using tabs to show different food categories. The tab's titles are fetched from MySQL (food categories - pizza, hamburgers, etc).
Inside each tab, I want to make a pagination system (so 100 types of pizza are not displayed at once). Paginating items is not difficult but in this case, "next page" shouldn't load a new page but only new items... so I'm guessing javascript is needed.
What would be a good and stable approach to this? Any examples out there? I found some but none exactly what I'm looking for.
Thanks in advance!
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Here is an EE article that discusses this
https://www.experts-exchange.com/articles/12238/Pagination-with-PHP-and-Mysql.html
https://www.experts-exchange.com/articles/12238/Pagination-with-PHP-and-Mysql.html
ASKER