PHP Classes

PDO Pagination: Display query results split in pages using PDO

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 31%Total: 1,377 All time: 2,818 This week: 404Up
Version License PHP version Categories
pdopagination 1.0Freely Distributable5.0HTML, PHP 5, Databases


This package can be used to display query results split in pages using PDO.

It takes an SQL query and executes it once to retrieve the total number of rows that it would return.

It can generate HTML with links to go other pages of the the results listing, given the current listing page number and the limit of results to display per page.

The code and comments are in Portuguese.

In Portuguese:

Paginação de resultados utilizando a classe PDO.

Picture of Gilberto Albino
Name: Gilberto Albino <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 43
All time rank: 55540 in Brazil Brazil
Week rank: 667 Down47 in Brazil Brazil Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file dados.sql Data This file contains the data used in the test
Accessible without login Plain text file paginacao.php Class This file contains the class for pagination and test case

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,818
This week:404Up
User Ratings User Comments (1)
 All time