im create dynamic combo from databases and wanna show selected data after in edit menu this my code
<select class="form-control" id="id_prog" name="id_prog" placeholder="Program">
<option>-- Program --</option>
<?php
$query = mysql_query("select * from program order by program asc");
while ($row = mysql_fetch_array($query)) {
?><option value="<?php echo $row['id_prog']; ?>"><?php echo $row['program']; ?></option><?php
}
?>
</select>