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,180 All time: 3,170 This week: 361Up
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: 38
All time rank: 211092 in United Kingdom
Week rank: 630 Up20 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  
This week:0
All time:3,170
This week:361Up

For more information send a message to info at phpclasses dot org.