hi 2 all ,
i have a problem in search according time period,
my table name "stats" have field id(int), ip(var char), counter(int),add_date(date time)
now i want a search on following ways
1. i want to show sum of counter according weekly >>>means weekly stats of counter
2. i want to show sum of counter according month>>> monthly stats of counter
3. i want to show sum of counter according yearly>>> yearly stats of counter