How do i perform search from php within the search result that was just returned? In oder to perform a search on the result set again i need to have the result set stored some where. either in session/cookie or temporary table in the mysql server. i tried the mysql temp tables using php. but in vain. i guess temp tables are not the answer. should i use sessions or cookies with client side scripting? I'm wondering if there is any other way to do it.

If my question is still not clear, i'm trying to mimic google's search within result or orkut style filter searching. Thanks for your time.

8 Years
Discussion Span
Last Post by rje7

serializing the $resultset to a file perhaps? the file name being the session id or username. but how do i delete this file after the user closes the browser?

      $result=mysql_query($query, $conn);
      $_SESSION["resultset"]=serialize($result);//serializing the result set to a session variable
      $dresult=unserialize($_SESSION["resultset"]);//unmarshalling the resultset from the session variable

Will this work the way it should?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.