I write this if statement inside echo statement, but it did not work correctly. Given that $row['a']=0 and $row['b']=0 from database.
.($row['a']==0 && $row['b']==0?'waiting for approval':$row['a']==1 && $row['b']==1?'Approved':'Stop running').
But it always echo Approved? It should echo 'waiting for approval' Is there something wrong with my code? Please help... many thanks