PHP Classes
elePHPant
Icontem

Split Result: Split MySQL query results 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 (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 This week: 1All time: 2,832 This week: 1,076Up
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: 188051 in Russian Federation Russian Federation
Week rank: 878 Up32 in Russian Federation Russian Federation Up

Details provided by the author  
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,280All time:2,832
 This week:1This week:1,076Up
 User Ratings  
 
 All time
Utility:67%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:71%StarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1193