Most users when works with large databases for websites with much more records in it and when want to list all results, experiencing problems how to display the data and how to keep small and nice looking web page with fast page load time.
Very elegant way to workaround with this is to display the limited result using SELECT * FROM `table` LIMIT $from, $how_much where:
$from - from which result to start listing
$how_much - how much results to list
And below the table with listed results to display paging navigation like this:
[1] 2 3 4 5
Next when user clicks on any button he can navigate in results by sending different values for $from parameter using GET or POST method. In our case this will be made with AJAX for prevent page loading and faster paging in the results.
In this tutorial I will show you exactly this - how to make Paged Result Query with AJAX using PHP & MySQL.
Now lets start with configuration of main parameters for data base connection and page result listing. This is our config.php file which we will include in several other files later:

