Brian E Boothe wrote:
> 
> 
> i would like the Rows for my Column "Status" to change colors depending
> on whether its PENDING / RESOLVED /OPEN /
> my Code for that now is
> <td bgcolor="#00FF33"><font color="#003399" size="2"><?php echo
> $row_Recordset1['resolved']; ?></font></td>
> in which is all green , can anyone Help me out
> thanks
> 
Try this:
<?
if($row_Recordset1['pending']){
   echo "<td bgcolor=\"other color\"><font color=\"other color\" 
size=\"2\">";
   echo $row_Recordset1['pending'];
   echo "</font></td>";
}
elseif($row_Recordset1['reslved']){
   echo "<td bgcolor=\"#00FF33\"><font color=\"#003399\" size=\"2\">";
   echo $row_Recordset1['resolved'];
   echo "</font></td>";
}
elseif($row_Recordset1['open']){
   echo "<td bgcolor=\"other color\"><font color=\"other color\" 
size=\"2\">";
   echo $row_Recordset1['open'];
   echo "</font></td>";
}
?>
William Piper

Reply via email to