PHP Classes

My Pagination: Display links for browsing database query results

Recommend this page to a friend!
  Info   Screenshots   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: 875 All time: 4,021 This week: 488Up
Version License PHP version Categories
my-pagination 1.0GNU General Publi...4.0HTML, Databases
Description 

Author

This class can display links for browsing database query results.

It takes as parameters the limit of records to display per page, the total number of records in the database query result set and the number of the current listing page.

The class can generate links to browse to the previous, next and any intermediate result listing pages.

It can also generate form select inputs with the lists of all pages to let the user choose a list page to which the browser is redirected.

The class can also return the MySQL query LIMIT clause to retrieve only the result records that will be displayed in the current listing page.

Picture of Romil Jayme
  Performance   Level  

 

Screenshots (3)  
  • page_numbers.jpg
  • prev_next.jpg
  • select.jpg
  Files folder image Files (7)  
File Role Description
Plain text file class.mypagination.php Class class file
Accessible without login Plain text file example.php Example example usage of the pagination class
Accessible without login Plain text file pages.sql Data Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

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  
 57%
Total:875
This week:0
All time:4,021
This week:488Up