PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (11 months ago) RSS 2.0 feedNot enough user ratingsTotal: 567 All time: 5,400 This week: 47Up
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
Age: 44
All time rank: 9031 in Armenia Armenia
Week rank: 128 Up1 in Armenia Armenia Equal
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 (22)  
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 (22)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:567
This week:0
All time:5,400
This week:47Up