Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown.
<select name="dropdown">
<option value="">--Select--</option>
<?php
$a=mysql_query("Select * from student whre status='0'")or die(mysql_error());
$b=mysql_num_rows($a);
if($b >0)
{
while($row=mysql_fetch_array($a))
{
?>
<option value="<?php echo $row['st_id']?>"><?php echo $row['name'] ?></option>
<?php } } ?>
</select>
This is my dynamic select box code for insert , I don`t know how to edit? Can any one tell me?