I would like to run a query like
select ... as days where `date` is between \'2010-01-20\' and \'2010-01-24\'
And return data like:
if you will ever need more then a couple days, you need a table.
Create a date range in mysql
then,
select from days.day, count(mytable.field) as fields from days left join mytable on day=date where date between x and y;