Ver originalecho '<option value="'.$row["rango"].'"'; if($row['rango']==$rango ) { echo "selected";} echo ">".$row['rango']."</option>";