Hi
thanks for your reply.
I have managed to get my if statement working, however, when i loop through the event array, I can only seem to get the last entry in my array to trigger the if statement.
Can anybody help?
I have 2 entries in my array, event1 and event2. Only event2 shows with the code below.
Here is my code:
$i = 1;
while (isset($events['event'.$i])) {
if
((
date('d',$events['event'.$i]['startdate']) < $d
AND
date('d',$events['event'.$i]['enddate']) > $d)
OR
date('d',$events['event'.$i]['startdate']) == $d
OR
date('d',$events['event'.$i]['enddate']) == $d
)
{
$today_class = 'eventtoday';
$days_class = 'eventmonthdays';
}else{
$today_class = 'today';
$days_class = 'monthdays';
}
$i++;
}