RobBroekhuis
Technical User
Using php/mysql to display search results, with 20 results shown per page. Since the results come from an actively used database, I'd prefer not to re-execute the search query for each page (e.g., page 3 would have results 41-60), since the number of search hits might change between page displays. That brings me to two questions:
* can I store a query resource identifier as a session variable, to refer to the same query results on the next page?
* is there an easy way to pick out, say, records 41 through 60 out of the query results, without having to loop through the first 40 with mysql_fetch_row?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)
* can I store a query resource identifier as a session variable, to refer to the same query results on the next page?
* is there an easy way to pick out, say, records 41 through 60 out of the query results, without having to loop through the first 40 with mysql_fetch_row?
Rob
![[flowerface] [flowerface] [flowerface]](/data/assets/smilies/flowerface.gif)