Login   Register  
PHP Classes
elePHPant
Icontem

Paginator: Spliting database query result sets between pages.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-08-10 (11 years ago) RSS 2.0 feedStarStarStarStar 70%Total: 6,788 This week: 2All time: 263 This week: 854Down
Version License Categories  
paginator 1.0.0GNU General Public Lice...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: 37141 in United States United States
Week rank: 761 Down83 in United States United States Down

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%Total:6,788All time:263
 This week:2This week:854Down
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:79%StarStarStarStar
Examples:84%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:177