How to select from the DB value and put them in But that one of the default is checked
$ place = mysql_query ("SELECT place FROM place");
while ($ pla = mysql_fetch_array ($ place)) {
echo "". $ pla ['place']. "";
}
If you do this, then you can choose all the meaning, but you need one and default. should have been checked
Here is my Html code
<div class="radio"> <div id="vibor"> <?php $place=mysql_query("SELECT place FROM place"); while($pla=mysql_fetch_array($place)){ echo "<label><input type='radio' value=".$pla['id']."/>".$pla['place']."</label>"; } ?> </div> </div>
id, the request must beSELECT id, place FROM place, 2 - in the loop check$pla['id']- if it is equal to the required, then in echo "..." writechecked. - Alex