PHP Classes

Paginator: Spliting database query result sets between pages.

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 6,864 All time: 293 This week: 488Down
Version License Categories
paginator 1.0.0GNU General Publi...HTML, Databases
Description 

Author

Paginator is a class that can help you to split MySQL database query result sets in pages.

Paginator will return a number that can be used to set your start result row and a number to use as an offset.

The class methods return values that you can use to create your navigation links. The values it presently returns are:

* First of in a series
* Second of in a series
* Total items in a series
* Total Pages
* First page
* Last page
* Previous page
* Next page
* Current page
* A set of numbered links
* The name of the current page.

There is also Paginator_html which is an extension to the Paginator class. It includes methods that supply a pre-defined HTML links like in these examples:

5 of 8 of 25 First | Prev | Next | Last |

Previous 1 2 3 4 5 6 7 Next

Picture of ted kappes
Name: ted kappes <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 40350 in United States United States
Week rank: 180 Up22 in United States United States Up

Details

Paginator 1.0 7-21-2003 http://tkap.org/paginator/ For the examples to work you will need to put paginator.php and paginator_html.php in a directory named "include" that is in the same directory as the examples. Otherwise you will need to change the paths for these to work. Once installed in a php enabled directory go to index.php for more information. Uses the GPL License. See gpl.txt for details.

  Files folder image Files (14)  
File Role Description
Accessible without login Plain text file example1.php Example Working example of use
Accessible without login Plain text file example2.php Example Working example of use
Accessible without login Plain text file example3.php Example Working example of use.
Accessible without login Plain text file example4.php Example Working example of use
Accessible without login Plain text file index.php Doc. Index page for docs
Accessible without login Plain text file Install_Examples.txt Doc. Installing the examples
Accessible without login Plain text file mysql.php Doc. mySQL use documentation
Accessible without login Plain text file mySQL.txt Doc. mySQL Instructions
Plain text file paginator.php Class Main Paginator page
Accessible without login Plain text file paginator_doc.php Doc. General documentation
Plain text file paginator_html.php Class Extension to add pre-made links
Accessible without login Plain text file README.txt Doc. General Information
Plain text file static_page.php Class Class to paginate static files
Accessible without login Plain text file static_page_instructions.txt Doc. Instructions for Static_page

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  
 0%
Total:6,864
This week:0
All time:293
This week:488Down
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:79%StarStarStarStar
Examples:84%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:246