In this tutorial, we are going to learn that how to create infinite scroll pagination with PHP and Ajax.
Let me show you some live examples of infinite scroll pagination, as you are a regular user of Facebook & Twitter etc.
In my previous article, I have covered the pagination with PHP and MySql, If you have not read it yet, then I suggest you read that article first.
A jQuery plugin called Inview
Inview is a JQuery Plugin, which is designed to fire an event as soon as the targeted element appears on the user’s viewport.
You must have JQuery installed in your page to work with Inview.
In this tutorial, we are going to create pagination with PHP and MySql.
It is probably possible that your SQL SELECT query may return result into thousand and millions of records.
And it is obviously not a good idea to display all those results on one page.
Paging means displaying all your fetched results in multiple pages instead of showing them all on one page.
How to create Pagination with PHP and MySql
MySQL’s LIMIT clause helps us to create pagination feature.