PHP Classes

Flexible pagination class: Split MySQL query results in multiple pages

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,116 All time: 3,374 This week: 455Up
Version License PHP version Categories
flexible-pagination 1.0GNU Free Document...3.0HTML, PHP 5, Databases
Description 

Author

This class can be used to split MySQL query results in multiple pages.

It takes a given SQL query and executes it in such way that it limits the retrieved results to a given range of rows with data to be displayed in the current page.

The class also generates HTML for links to go to the next, previous, first and last page of the query results listing. It can also generate a select input with Javascript to jump to the listing pages.

The limit number of rows to display per page is configurable.

Picture of mano kalousdian
  Performance   Level  
Name: mano kalousdian <contact>
Classes: 2 packages by
Country: Lebanon Lebanon
Age: 44
All time rank: 13041 in Lebanon Lebanon
Week rank: 215 Up1 in Lebanon Lebanon Equal

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example Example an example
Plain text file paginationclass.php Class the main class of the pagination

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,116
This week:0
All time:3,374
This week:455Up