[snip]
For a program I am writting I need to have a control panel to display
anything that may be wrong. I would like to use something like a
stoplight so that it would be easily understood by a lay person. Does
anyone have any comments as to what they have used? Also does anyone
have a function/graphic that would be a stop light and changing the var
would make it either show red, green, or yellow?
[/snip]
you will need three graphics
if("good" == $condition){
echo "<img src=\"greenlight.jpg\">\n";
} elseif("marginal" == $condition){
echo "<img src=\"yellowlight.jpg\">\n";
} elseif("bad" == $condition){
echo "<img src=\"redlight.jpg\">\n";
}
HTH!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php