How to create pagination using PHP and MYSQL

Paging (Pagination) means showing Database results in multiple pages instead of one long page. if we have more than 100 records in database and we want to show all results but not in a single page, so we can devide this results into many pages. MySQL helps to generate paging by using LIMIT clause which will take two arguments. First argument as OFFSET and second argument how many records should be returned from the database. Below is a simple code to fetch records using LIMIT clause to generate paging.

Read More