Forum Moderators: coopster
i am looking to make a search engine to search mysql (fulltext, boolean, etc), the core of the script is complete but i am a little confused when thinking of the best way to span the results through multiple pages (paginate).
i am trying to avoid searching the db again each time the user views a different page result set. i can create a pagination function with no problem... just figuring out how to span the results without performing ANOTHER search on the db is the problem.. i was thinking i could insert the results into a temp table then paginate those results instead.. but that might be overkill because of the extra overhead/queries, especially if a search returns a lot of results.
since switching to another paged result set i would have to re-run the MATCH() AGAINST() queries yet again, which im trying to avoid, how can i come up with a work-around? been thinking about it for a couple days and i've yet to come up with any ideas/solution.
can someone give me some ideas/suggestion?