I'm working about some listing and gallery in codeigniter with PHP. I've done all the searches and good search result page with pagination.
Now when I click on position in my search results list it gets me into page with single result, description etc.
My question is: how to smartly make "next" and "previous"links on this single result page? After clicking next it goes to the page of next result etc.
Is there any other way than storing full search results in some array while browsing?
preguntado el 31 de julio de 12 a las 12:07
You can store the search conditions instead (much smaller -> can be stored for a long time, so you don't need to obfuscate the UX by sometimes showing prev/next and sometimes not) and add some generic user-independent caching layer to the search results. (This assumes that search results are not personalized and don't change much in time.)