I have mysql table that table names' are id and name. I want to fill combobox with names but I couldn't figure out how to fill with only names. When I do this
<?php foreach($category as $key => $value ) {
?>
<option><?php echo $value?></option>
<?php }?>
It fills combobox with ids and names.