Results 1 to 12 of 12
Thread: foreach date loop
Dec 14, 2010, 15:08 #1
- Join Date
- Nov 2010
- 0 Post(s)
- 0 Thread(s)
foreach date loop
I was wondering how would I go about setting up a loop of all dates within a range so I could then check if they match my database record.
I have these variables:
$the_start = date('Y-m-d H:i:s', $_REQUEST['start']);
$the_end = date('Y-m-d H:i:s', $_REQUEST['end']);
The idea is I have a month range from the $the_start to $the_end and I am trying to get a print out of say, each thursday. It's for reocurring events in a calendar.
Is there an easy way to create this loop?