Wondering if someone can help me out?
I've created a very simple search engine for my site that stores all of the search queries in a MySQL table. For example:
id Query
1 Dog
2 Cat
3 Dog
4 Mouse
5 Dick Cheney
6 Cat
7 Cat
I want to be able to run a query that gives me the results as follows:
Query Amount of times searched
Cat 3
Dog 2
Mouse 1
Dick Cheney 1
I can use the Count() function to look for and count specific results but how can I get Count() results for all possible variables in the table?
Thanks in advance for anyone who can help!