MySQL Forums
Forum List  »  PHP

Change color of column results if negative.
Posted by: Gordon White
Date: April 11, 2016 04:34AM

Is it possible to change the output text color if a summed value is <0.

I have this Example inside <?PHP and ?>:


<td align='center'>$" . $row['wl'] . "</td>

I know that i can use "if" but don't know how to format.

Can you help?

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Change color of column results if negative.
April 11, 2016 04:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.