I need to populate a table with a row for each day over the past 5 years?
E.g
1. 04/11/2012
2. 03/11/2012
3. 02/11/2012
4. 01/11/2012
5. 31/10/2012
6. etc
This will just be a php script that I run once and inserts all of the records.
The reason for doing this is for performance testing my other code with enough data in the database.
This will give you the date-format you want:
$i is the number of days past/ahead of this date. So if $i is -1 that means one day ago. I guess you could make a loop of it, decreasing/increasing $i.