PHP Classes
elePHPant
Icontem

Split Result: Split MySQL query results between pages

Recommend this page to a friend!
  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 (11 years ago) RSS 2.0 feedStarStarStar 56%Total: 1,282 All time: 2,893 This week: 884Up
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

Details
Description
===========

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. 


Sample
======

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

	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.

	http://yourhost/usage.php

Enjoy!


Author
======

Gaidar Magdanurov [gaidar@vbstreets.ru]
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,282
This week:0
All time:2,893
This week:884Up
 User Ratings  
 
 All time
Utility:67%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:71%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1497