Hi,
I tried a search before posting, and couldnt find anything useful so if anyone can point me in the right direction id be gratefull
if ($DocType == "RU") {
echo "<td height='20' width='50' bgcolor='#EFF3F7' bordercolor='#FFFFFF'><font face='Verdana' size='1' color='#000000'><a href='OpenDocuments.php?DocumentCode=$DocType'>".$row['DocType']."</font></a></td>
<td height='20' width='200' bgcolor='#EFF3F7' bordercolor='#FFFFFF'><font face='Verdana' size='1' color='#000000'>".$row['DocTypeName']."</font></a></td>
<td height='20' width='100' bgcolor='#EFF3F7' bordercolor='#FFFFFF' align='right'><font face='Verdana' size='1' color='#000000'>".number_format($Turnover,2)."</font></a></td>
<td height='20' width='100' bgcolor='#EFF3F7' bordercolor='#FFFFFF' align='right'><font face='Verdana' size='1' color='#000000'>".number_format($Profit12,2)."</font></a></td>
<td height='20' width='100' bgcolor='#EFF3F7' bordercolor='#FFFFFF' align='right'><font face='Verdana' size='1' color='#000000'>".number_format($Margin,2)."</font></a></td>
<td height='20' width='100' bgcolor='#EFF3F7' bordercolor='#FFFFFF' align='right'><font face='Verdana' size='1' color='#000000'>".$row['Qty']."</font></a></td>
<td height='20' width='100' bgcolor='#EFF3F7' bordercolor='#FFFFFF' align='right'><font face='Verdana' size='1' color='#000000'>".$row['Lines']."</font></a></td>";
echo "</tr>";
}
This is part of some code. I want that if $turnover is negative to have the font colour red.
Any ideas how to do this within this layout