Link to home
Start Free TrialLog in
Avatar of socialbutterfly
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
ASKER CERTIFIED SOLUTION
Avatar of mankowitz
mankowitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of socialbutterfly
socialbutterfly

ASKER

Thank you soooo much!
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
Look at your code. You probably have to reset $activedays whenever you change the month.
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.