Re: [PHP] Searching and storing results index in cookies or session variables

2006-07-13 Thread Brian Anderson
Hey, I figured I was making a nightmare goulash out of it, but with limited knowledge and few examples I could find, it is what I came up with, back in yonder times. Probably why I am questioning it's viability now. I understand offset and limit in SQL. Perhaps, like this example

Re: [PHP] Searching and storing results index in cookies or session variables

2006-07-13 Thread Richard Lynch
On Wed, July 12, 2006 3:40 pm, Brian Anderson wrote: > I have a question about how I am searching through a products > database. > What I am wanting to do is store the result set so that I can provide > a > link to go back to previous searches quickly, and also manipulate it > quickly. If I had a f

Re: [PHP] Searching and storing results index in cookies or session variables

2006-07-13 Thread Shafiq Rehman
Hello Brian, Storing the result set in session or cookie is not a good idea. You can implement some caching mechanism in your search results. I implemented this in my project and it works simply great. Its very simple, You have to write two functions 1- writeCache($id, $data, $ttl) This routine

[PHP] Searching and storing results index in cookies or session variables

2006-07-12 Thread Brian Anderson
Hello, I have a question about how I am searching through a products database. What I am wanting to do is store the result set so that I can provide a link to go back to previous searches quickly, and also manipulate it quickly. If I had a flat catalog of pages I could index the content in a