Hello,
I have a table like this:
date | hits | sales
2002-03-01 | 1 |0
2002-03-04 | 5 |1
2002-03-11 | 4 |0
Every time a new hit or sale is made on a new date a new row is added to my table. So far everything works.
Now I would like to output a overview from a period from 2002-03-01 to 2002-03-11.
My query find 3 rows, but in my overview I would like to see all dates between 2002-03-01 to 2002-03-11, something like below:
<table bla bla>
2002-03-01 | 1 | 0
2002-03-02 | 0 | 0
2002-03-03 | 0 | 0
etc.
</table bla bla>
How do I make a loop that can do that?
Or maybe a mysql query?
Thanks,
Michael