I hve tried several different time to get the font color to change base on the feild being yes or no. It works but when you click on view record you get
<font color=red>No</font>
I have tried
[codebox]if($value=="Yes")
$value="<font color=black>Yes</font>";
else if($value=="No")
$value="<font color=red>No</font>";[/codebox]
and
[codebox]
if($data["job_expired"]=="no")
$value = "<font color=red>".$value."</font>";[/codebox]
Now I have a field that changes based on date and when I view that it does NOT show the html markup
[codebox]//current date - 14 days (14246060)
$curd = date("Y-m-d",strtotime(now())-14246060);
$str = "<font color=";
if ($value>= $curd)
$str.="green";
Else
$str.="red";
$str.="><b>".$value."</b></font>";
$value=$str;[/codebox]
What am I doing wrong, it looks awful with the code showing in the view record?
TIA
Lori