PHP Classes

PDO Pagination: Display query results split in pages using PDO

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-02-21 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,329 All time: 2,775 This week: 1,152Up
Version License PHP version Categories  
pdopagination 1.0Freely Distributable5.0HTML, PHP 5, Databases
Description Author  

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: 35
All time rank: 55943 in Brazil Brazil
Week rank: 240 Up13 in Brazil Brazil Up

  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  
 0%Total:1,329All time:2,775
 This week:0This week:1,152Up
 User Comments (1)  
I was unable to run this script on XAMPP for Windows .
6 years ago (Khurram Adeeb Noorani)