Ah? Another option I hadn't thought of... saving the SEARCH RESULT to the session... another pair of eyes always sees things differently
I had only thought of saving the search criteria to the session...
For paging I was only planning to use LIMIT x,y on the MySQL query. Would it be more efficient to omit the limit and save the result to the session and then manually limit it myself (should think that's easy...)
I know there is no limit on session size, but if I producved a big search (I expect eventually that the database will hold 3-5,000 records and it should be possible to search for 'all') with several users on at once would there be issues? Especially as I haven't written a clever way to close sessions when people shut their browser down...
LIMIT was my aim to keep database activity to a sensible amount, but I might need to remove it anyway because my databse is RELATIONAL and so SORT by BAG TYPE actually relates to a number and not the name the user sees on screen. The snag with that is SORTING wont actually ut things in a 'sensible' order for the user unless the relational list is in a sensible order (and countries aren't!). So I may have to read all the data and sort it... in which case I assume I am better doing that and saving it to a session variable than doing it for each screen refresh...
Calum