Hey guys,
I have a start date and an end date:
$start_date = '2011-05-01'
$end_date = '2011-05-04'
I want to insert four records between those dates so that my table looks like this:
id | date
---------------
1 | 2011-05-01
2 | 2011-05-02
3 | 2011-05-03
4 | 2011-05-04
Is this something I could do with one SQL query or would I need a PHP loop?
I have a start date and an end date:
$start_date = '2011-05-01'
$end_date = '2011-05-04'
I want to insert four records between those dates so that my table looks like this:
id | date
---------------
1 | 2011-05-01
2 | 2011-05-02
3 | 2011-05-03
4 | 2011-05-04
Is this something I could do with one SQL query or would I need a PHP loop?