Jquery Mysql PHP

Load Data while Scrolling Page Down with jQuery and PHP

This tutorial about my favorite placeDzone like data loading while page scrolling down with jQuery and PHP. We have lots of data but can not display all. This script helps you to display little data and make faster your website.

ProgressiveLoadingExplained

Database Table

load_data.php

When we are scrolling down a webpage, the script($(window).scroll) finds that you are at the bottom and calls the last_msg_funtion(). Take a look at $.post(“”) eg: $.post(“load_data.php?action=get&last_msg_id=35”)

load_first.php



Contains PHP code to load 20 rows form the message table.

load_second.php
Contains PHP code to load 5 rows less than last_msg_id form the message table.

CSS