简体   繁体   中英

How do I grab recent searches?

I do have a personal web search engine by PHP and a MySQL database. I want to grab the recent searches done by users and display the same. How can I do that?

Make a new table and you can log the user's ip, search, time stamp, etc.

Or if you don't want to do that, you can create a text file and have it log to it... Just make sure it's something unique so no one can look at it!

The easiest way would be to store their searches in a table.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM