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:

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

  1. Web Developer Php

    Nice one. This is good example for create a infinite page scroll using jquery. Its save lot of time. Good job and well explained.

    Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *