• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[PHP / MySQL] [HOWTO] select data and split on pages

Status
Not open for further replies.
Joined
Dec 26, 2006
Messages
1,305
Reaction score
167
I found this on some website, eddited some stuff, but really usefull.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

HOWTO: SELECT data from a MySQL database, split it on multiple pages and display it using page numbers.

We have MySQL table called 'students' holding 90 records with the following fields:
Name
 
Master Summoner
Joined
Oct 9, 2008
Messages
572
Reaction score
14
Good job SF :)
I already knew about the LIMIT, but could think of a way to make it move along with pages.
Thanks a bunch! :)
 
Custom Title Activated
Loyal Member
Joined
Dec 21, 2007
Messages
1,040
Reaction score
127
That's pretty nice indeed. I've always wondered how I could sort out pagination.. with this brief explanation I think I got it now. Thanks ^^
 
Status
Not open for further replies.
Back
Top