Hi
I have some problems counting some data.
I have some data put into a database by a webcounter.
In the database I have a date and a counter field like this.
Date 23-10-2006 - Count 14
Date 22-10-2006 - Count 11
and so on.
I have found the date with the highest number of hits like this:
$gethighest = mysql_query("SELECT * FROM CookieCounter ORDER BY Count DESC LIMIT 1");
while ($row = mysql_fetch_array($gethighest)){$highest=$row['Count'];}
This just finds the date with the highest number in the field Count.
But I need to find the Month with the highest number of hits, but I can't get it to work.
I don't need to know which month has the highest, but I only need to know the number of hits in that month.
So somehow I need it to sum the Count field for each month, and show me the sum number of hits from the best month.
I'm a little lost, so I need a little help :o)