PHP Classes

PDO Paginate: Build pagination links for MySQL queries using PDO

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,182 This week: 1All time: 3,204 This week: 560Up
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
Age: 42
All time rank: 213996 in United Kingdom
Week rank: 416 Up15 in United Kingdom Up

  Files folder image Files  
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)

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,182
This week:1
All time:3,204
This week:560Up