try the following code snippet and check whether it helps u out.
<select name="cadsource_id">
<?php
$db = mysql_connect("localhost", "user", "passwd");
$result1 = mysql_db_query("cad_design_db",
"select cadsource_id, cadsource_name FROM cad_source order by cadsource_name");
while($row1 = mysql_fetch_object($result1)) {
/*** $priorcadsource_id should be the cadsource_id that u had queried from the database previously */
if($priorcadsource_id==$row1->cadsource_id)
{
$selected=" selected";
}
echo "<option value=\"$row1->cadsource_id\" $selected> $row1->cadsource_name </option>";
}
mysql_free_result($result1);
?>
</select>