What is your preferred method for presenting data over a number of pages?
Eg A start page presents a search criterion to MySQL. PHP creates an SQL query which presumably returns - lets say - 200 records into a PHP variable. PHP reads the first -let's say - 50 records and generates a page. The user views that page and the presses a button 'Next'. What happens now? Does PHP run the query again only this time ignore the first 50 records, and display records 51-100? That seeems inefficient but if somehow you tried to store the results-set somewhere you'd have problem cleaning up when the 'session' finished. Any guidlines you can offer?
Eg A start page presents a search criterion to MySQL. PHP creates an SQL query which presumably returns - lets say - 200 records into a PHP variable. PHP reads the first -let's say - 50 records and generates a page. The user views that page and the presses a button 'Next'. What happens now? Does PHP run the query again only this time ignore the first 50 records, and display records 51-100? That seeems inefficient but if somehow you tried to store the results-set somewhere you'd have problem cleaning up when the 'session' finished. Any guidlines you can offer?