PHP Classes

Split Result: Split MySQL query results between pages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-07-31 (10 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,280 All time: 2,833 This week: 1,067Up
Version License Categories  
splitresult 1.0GNU General Publi...HTML, Databases
Description Author  

This class is meant to split the presentation of a MySQL database query results between multiple pages.

The class takes a MySQL query result set handler value and generate navigation HTML links between pages of result pages given the limit number of query result rows to display, the number of rows in the result set and the number of the current results page to display.

Picture of Gaidar
Name: Gaidar <contact>
Classes: 1 package by
Country: Russian Federation Russian Federation
Age: ???
All time rank: 188251 in Russian Federation Russian Federation
Week rank: 1498 Up48 in Russian Federation Russian Federation Up

Details provided by the author  

SplitRerult is a very simple, but easy to use splitter class for MySQL
server database. It works with all server's versions.
Look through the sample to found out how to use the class. 


To use included sample create mysql database, name it, for instance,
'test_db'. (If you decide to use another names, correct $mysql_db in

	mysqladmin create test_db

Correct config.php to match your system configuration. 
After that, install data using mysql client. Like that:

	mysql test_db < mysql_db.sql

Copy files to your web-server directory and point your browser to 
file usage.php.




Gaidar Magdanurov []
ICQ: 167656859
  Files folder image Files  
File Role Description
Accessible without login Plain text file config.php Conf. Configuration file for the sample.
Accessible without login Plain text file mysql_db.sql Data SQL data
Accessible without login Plain text file README.TXT Doc. Documentation
Plain text file split_result.php Class SplitResult class
Accessible without login Plain text file usage.php Example Example of using SplitResult

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,280All time:2,833
 This week:0This week:1,067Up
 User Ratings  
 All time