how different display of two condition with php and css -


i try use google find solution question nothing good, have table accounts_ column condition_ , display dynamically rows in <table>

in column condition_ have 2 condition account active or incative want display icon inactive if it's inactive , icon active if it's active.

help,

you did not write code can guess code answer question

$yourdata["db"]; foreach ($yourdata["db"] $key => $value)  { if($value["condition_"]=="active") $statu='<img src="">'; // active img url elseif($value["condition_"]=="incative") $statu='<img src="">'; // incative img url } 

in table

echo ' <tr> <th>'.$statu.'</th> </tr>'; 

you can show img method