Christopher J. Crane wrote:
 if($Balance >= 10001) { echo "<font
color=\"green\">\$$Balance</font><br>\n"; }
 elseif($Balance <= 9999) { echo "<font
color=\"red\">\$$Balance</font><br>\n"; }
 else { echo "<font color=\"purple\">\$$Balance</font><br>\n"; }

Works fine here. The elseif condition will be true if $Balance is undefined. Are you sure that variable exists and is actually set to 10000?


--
Stuart

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to