I am using PHP to extract data from a MySQL database into a table on a web page. This works fine but I would like to change the font of some of the output depending on the value of a variable.
The output code looks as follows:
<td><font face="Arial, Helvetica, sans-serif"><?php echo $variable; ?></font></td>
I would like to change the font to be red if the value of $variable is less than 0. Any help would be much appreciated.