PHP Classes

Extended Generic Pager: Paginate data listings from arrays, CSV or MySQL

Recommend this page to a friend!
  Info   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (4 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 562 This week: 1All time: 5,419 This week: 350Up
Version License PHP version Categories
ext-generic-pager 1.0GNU General Publi...5.0HTML, PHP 5, Databases
Description 

Author

This package can paginate data listings from arrays, CSV files or MySQL databases.

There is a base class that can generate links to browse listings split in pages to the next, previous, first, last and intermediate pages.

Additional sub-classes are provided to take the data for the listings from arrays, CSV files or MySQL database queries using either the PHP MySQL extension or PDO.

The URLs and text labels of the links are configurable.

Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 8 packages by
Country: Armenia Armenia
Innovation award
Innovation award
Nominee: 2x

Details

This PHP package can be used to browse listings of entries split in multiple pages. The format of records can be MySQL, CSV or plain array. The class can generate a HTML list with links to browse the listing pages, optionally with links to the previous, next, first and last pages. The URLs and text labels of the links are configurable. Copyright (C) 2012 Mark Rolich

  Files folder image Files  
File Role Description
Files folder imageexamples (16 files)
Accessible without login Plain text file license.txt Doc. License
Plain text file Pager.php Class Main class
Plain text file PagerArray.php Class Extension of main class for arrays
Plain text file PagerCSV.php Class Extension of main class for CSV files
Plain text file PagerMySQL.php Class Extension of main class for MySQL
Accessible without login Plain text file README Data Readme

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file array.php Example Example of array pagination
  Accessible without login Plain text file csv.php Example Example of CSV pagination
  Accessible without login Plain text file custom.php Example Example of MySQL customized pagination
  Accessible without login Plain text file data.csv Data Data for CSV example
  Accessible without login Plain text file data.php Example Data for array example
  Accessible without login Plain text file data.sql Data Data for MySQL example
  Accessible without login Plain text file example.css Data CSS file for examples
  Accessible without login Plain text file example.custom.tpl.php Example Template for customized example
  Accessible without login Plain text file example.tpl.php Example General template for examples
  Accessible without login Plain text file mysql.php Example Example of MySQL pagination
  Accessible without login Plain text file mysqli.php Example Example of MySQLi pagination
  Accessible without login Plain text file mysqli_prepared.php Example Example of prepared MySQLi pagination
  Accessible without login Plain text file pdo.php Example Example of PDO pagination
  Accessible without login Plain text file pdo_prepared_1.php Example Example of PDO prepared pagination
  Accessible without login Plain text file pdo_prepared_2.php Example Example of PDO prepared pagination
  Accessible without login Plain text file pdo_prepared_3.php Example Example of PDO prepared pagination

 Version Control Unique User Downloads Download Rankings  
 100%
Total:562
This week:1
All time:5,419
This week:350Up