Hi,
I wonder if someone could help - this is probably very easy to do, but I'm struggling as usual!
I have a script that reports all clicks of url's on my site to a db, which I wrote so that i could see how many clicks each link got. Now I need to draw monthly reports from this and can't figure out the code I need to display it the way I want.
My columns are: date, url, clicks
I only have about 25 urls, and what I want to do is display a monthly report of how many times each url was hit (without listing the urls over and over again, of course)
So I figured I would have to: SELECT DISTINCT 'url' WHERE 'date' = "2003-02-%"
...so that I get a list of each url once for Feb 2002. But the problem I have is how to select the clicks, calculate them all together for each url, and then display a table like so:
month: Feb 2002
url: www.mydomain.com
hits: 17
(which would loop for all relevant domains)
Any ideas? I would really appreciate some help!
Thanks
Jonathen