group search results

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sebs
Forum Commoner
Posts: 97
Joined: Tue Sep 20, 2005 10:13 am

group search results

Post by sebs »

How can I group the search results in more than one page?How do I transmit to the other page what I have not showed in the first result page?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

By use of the LIMIT function/property in the SQL query.

You can specify the start row and finish row of the selection you wish to display.

Use GET variables to transmit between page requests to specify which rows to start and finish on :)
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

search terms "pagination"
Post Reply