Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Exibir dropdown em HTML com PHP

<div class="form-group">
  <label class="col-md-3 control-label">Admob On/off :-</label>
  <div class="col-md-6">   
   <select class="form-control " type="text" name="ads_status"  >
     <option value="on" <?php if($settings_row['ads_status']== 'on') echo "selected = 'selected'" ?> >On</option>
     <option value="off" <?php if($settings_row['ads_status'] == 'off') echo "selected = 'selected'" ?> >Off</option>
   </select>
  </div>
</div>

Espero que isso ajude você.