Dynamically load data on div scroll using php, mysql, jquery and ajax

If you have lots of data and displaying the whole data in one time is very costly. There comes to approach one is lazy loading and another is pagination.

Here we are going to discuss the lazy loading in PHP, MySQL and Ajax. In lazy loading user can keep scrolling and keep getting the data until the whole data completes. Just like we quora and facebook do, User keep scrolling and post keep coming.

Mysql QueryClick here to download demo code

db.php

index.php

posts.php

 

Share This: