socialbutterfly
asked on
Have date with event change color in minical
I am using the minical.php system for a calendar on our website. Everything is working great, but I need any date with an event to change to a different color.
I am attaching the PHP file here.. any help would be appreciated.
The css for the dates with events is "date-event"
Thanks..
minical.php
I am attaching the PHP file here.. any help would be appreciated.
The css for the dates with events is "date-event"
Thanks..
minical.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just found out that this only works on the current month.
I have
if (in_array($i,$activedays))
{ echo 'class=today-event ';
}
if (($i == date('d')) && ($m ==date('m'))){
echo "class=today";
}
it gives this error when I go to a new month...
Warning in_array()[; Wrong datatype for second argument in ... on line 181
I have
if (in_array($i,$activedays))
{ echo 'class=today-event ';
}
if (($i == date('d')) && ($m ==date('m'))){
echo "class=today";
}
it gives this error when I go to a new month...
Warning in_array()[; Wrong datatype for second argument in ... on line 181
Look at your code. You probably have to reset $activedays whenever you change the month.
ASKER
It only does it if there isn't an event for that month. Trying to figure out how to check to see if it is empty or not.
ASKER