echo '<option value="0" {if/else} >Em revisão</option>';
echo '<option value="1" {if/else} >Publicado</option>';
I would like to have a if/else
condition to ask the database for the value and give a selected
on the returned value. Can you help me?
It would be something like: if($resultado['status'] == 1) { echo 'selected=selected'; }