I've saved value from drop lower list to database. I wish to echo exactly the same value to become displayed for the reason that drop lower list during my edit form. how do i make that happen in php?

Region
<select name="stf_region">
<option>Select</option>
<option value="1">MDU</option>
<option value="2">TMM</option>
</select>

i've saved in database using worth of selection however i have no idea to show that value in same drop lower

If you are capable of getting db data into array, you are able to use them such as this:

<?php
$options = array('label 1' => 'value 1', 'label 2' => 'value 2');
echo "<select name=somename>";
foreach($options as $key => $value){
    echo "<option value=" . $value . ">" . $key . "</option>";
}
echo "</select>";
?>

Use something similar to this:

       <?
         $sql = "SELECT id, description FROM dropDownTable";
         $rs = mysql_query($sql);
       ?>
       <select name="dropDown">
         <option value="-1">Please select...</option>
       <? while ($obj = mysql_fetch_object($rs)) { ?>
         <option value="<?= $obj->id; ?>" <? if ($data['downDown'] == $obj->id) echo "SELECTED"; ?>>
           <?= $obj->description; ?>
         </option>
       <? } ?>
       </select>

Please be aware $data must be set being an associative array that contains characteristics from the entity that's being edited. This code is flexible because within the situation of the form in which a user might have posted a partial form $data might be set towards the $_POST variable and thus all joined fields could be incorporated with no user requiring to re-specify fields they formerly completed. This essentially means your form template, placing an entry and editing an entry could possibly be the same!

Well you could do this such as this

   $query = "select id, label from lookup_table";
   $result = mysql_query($query);
   $html = "<select name='yourname'><option value="">Please select...</option>";
   while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        $html .= "<option value='$row[id]'>$row[label]</option>";
   }
   $html = "</select>";
   echo ($html);//Display the select in the page

i made use of the COOKIE to complement the worthiness that needs to be selected if this involves edit the shape.

  <?php
    while($result_row=mysql_fetch_array($result)){
    if ( $_COOKIE['MY_COOKIE'] == $result_row[importance_level_id )
    {
    echo "<option SELECTED=\"SELECTED\" value=$result_row[importance_level_id]>$result_row[importance_level]</option>";
    }
    else
    {
    echo "<option value=$result_row[importance_level_id]>$result_row[importance_level]</option>";
    }
    ?> 

Presuming you're comfortable with choosing the worthiness from the database right into a PHP variable (let us say $region) I believe you're soon after

Region
<select name="stf_region">
<option>Select</option>
<option value="1"<?php echo ($region == '1') ? ' selected="selected"' : ''; ?>>MDU</option>
<option value="2"<?php echo ($region == '2') ? ' selected="selected"' : ''; ?>>TMM</option>
</select>

This is actually the most concise response to the question which i think you're asking. This really is a really specific answer and assumes that the dropdown values are difficult-coded and will not be altering.

If you prefer a more flexible setup that retrieves the values from the dropdown in the database you're searching for some thing like what's been recommended by Gordon Murray Dent above