PHP Classes

PDO Paginate: Build pagination links for MySQL queries using PDO

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,182 All time: 3,210 This week: 206Up
Version License PHP version Categories
pdo-paginate 1.0.0MIT/X Consortium ...5.2HTML, PHP 5, Databases
Description 

Author

This class can build pagination links for MySQL queries using PDO or MySQLi.

It takes a given SQL query and calculates the expected number of result rows in order to build a HTML list of links to browse the query result pages given the limit number of results to display per page.

It can optionally show previous, next, first and last page links.

The CSS styles and the base URL of the links are some of the configurable options.

Picture of Ben Griffiths
Name: Ben Griffiths <contact>
Classes: 1 package by
Country: United Kingdom

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file HowToUse.txt Doc. Directions on using the class
Plain text file paginate.php Class Pagination Class (PDO or MySQLi)

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,182
This week:0
All time:3,210
This week:206Up