Conditional formating a php include
Posted: Wed Nov 07, 2007 3:16 am
Hello,
On a web page I hope to put a PHP include to retrieve data from a text file which will contain 3 statuses. RUNNING, STOPPED, PAUSED
But I can't figure out how to set conditional formatting so that for example RUNNING is displayed as green, STOPPED as red and PAUSED as yellow.
How can I do this?
Thanks in advance.
On a web page I hope to put a PHP include to retrieve data from a text file which will contain 3 statuses. RUNNING, STOPPED, PAUSED
But I can't figure out how to set conditional formatting so that for example RUNNING is displayed as green, STOPPED as red and PAUSED as yellow.
How can I do this?
Thanks in advance.