hi-
Im trying to add the finishing touches to a color-coded 3 day calendar (ie. day 1=red, day 2=green, day 3 =blue) and it repeats that way each day of the year and beyond...
The idea is to get the colors to switch the highlighted day every 24 hours.
However I have a prob...
$today = date("H");
$tdbgcolor = array(
"#009900", "#cc0000", "#0000ff"
);
$highlight = date('d',mktime(0,0,0,$the_month,$day,$the_year)) == date('d') ? $dayhighlightcolor : $tdbgcolor;
$output->Text('<td bgcolor="'.$highlight.'" align="center" valign="top">');
Any ideas?