Jump to content

if statment condition


hyster

Recommended Posts

this code works fine if the conditions are absolute ( pass, fail or empty). im trying to make the fail work if its part of the query. ive tried %fail% but didnt work.

 

$choice = strtoupper($rows['comments']);
if($choice == "PASS"){  
$bgc = "#ff25f0" ; }    
elseif($choice == "FAIL"){
$bgc = "#666666" ;   
}else{
$bgc = "#FF6600" ; }

Link to comment
https://forums.phpfreaks.com/topic/220109-if-statment-condition/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.