Jump to content

Recommended Posts

What ?! no i don't.... i am looking for an IDEA....

 

mate... how do i do it theoretically ???  what do i place in the tables/rows ?! how do i search it afterward ?

 

should i create a new row for each search done ? should i shove some together ?

 

what is the concept ???

 

ummzz... not trying to annoy you... thanks a lot for reading... but i need this solved... not discussed :)

Basic form...

 

Everything used to search with is stored inside a dedicated table (say "searchterms")

 

termid INT UNSIGNED PRIMARY AUTOINC

term VARCHAR[80]

count INT UNSIGNED

 

OK, not quite exactly MySQL I'm tired :)

 

Before you add a search term check if it exists already. If it does, increase the counter by one. If not, add it with a count of 1. As the searches are performed this little table will increase in size.

 

Then, to view the top 10 use something like this:

 

SELECT * FROM `searchterms` ORDER BY `count` DESC LIMIT 0,10

Basically what these guys are talking about: You have to have some sort of repository for the data that is to be collected. Then you can make a script to run through the dad and be able to determine which is the most searched. For this you can do one of two things; that I know of. Either a flatfile database (a singular textfile containing your data); or a MySQL database to more efficiently hold your data. Once you have a way to store the files, then a process can be developed to poll for information.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.