Page 1 of 1

Log user searches

Posted: Mon Jun 13, 2005 10:25 am
by Zues
Hello how difficult is it to record user searches using php ? I run an eCommerce store and would like to be able to track user searches.

Posted: Mon Jun 13, 2005 11:05 am
by Skara
create another table in your database.
each time the search form is submitted, add a row in the table with the time and search terms.

Thanks

Posted: Mon Jun 13, 2005 3:31 pm
by Zues
Anychance you know the technical term of what i am trying to do? So I may search on how to due this.

As you can tell im new to this and dont mind doing it on my own just cant seem to find any relevant matches when I search for anything on the search engines.

I am thinking also due to the possible amount of searches this may not be a good idea to store it in the database might be a better option to store it in a log file. (perhaps) just thinking ahead is all

Posted: Mon Jun 13, 2005 4:33 pm
by pickle
All you're asking to do is just save user searches. There's not a lot, technically, to do for this functionality, so I doubt you'll find tutorials or anything on how to do this. Doing what ~Skara suggested is probably the best and easiest way to do it.