I have a field that I am trying to have the text show RED if the date matches today. I also have to adjust for the server time being different than local time.
Here is what I have tried, which does not work and produces errors
global $data;
$str = "<font color=";
if ($value=="date("m/d/Y")")
$str.="red";
$str.=">".$value."</b></font>";
$value=$str;
global $data;
$str = "<font color=";
if ($value==date('Y-m-d', strtotime("-8 hour"))
$str.="red";
$str.=">".$value."</b></font>";
$value=$str;
<b>
to match</b>
date_default_timezone_set()
to adjust for different timezones.<font>
and<b>
.if ($value=="date("m/d/Y")")
line, that's probably why you're getting errors.