Here is my exact code:
$date = date('l, F j');
$start = $row['date']; // equal to Monday, April 15
$interval = $row['interval']; // this is equal to 7
$end = date('l, F j', strtotime($start ."+$interval days"));
if ($end < $date) {
// do this
} else {
//yada yada yada
}
I dont know if Im using the variable $interval
wrong or if the date strtotime +7 days can not be used in this date format.
I would like to keep the date format in this but if I must change then I guess I have to.
The question is Can I use this date format and still add $interval
amount of days?
When the $end
date is less than the $date it should do one part of the code and its not doing that part.
Any help would be great. Thanks.