How do i make it so that the category is showing that is listed in the database on top ?
The below list all of the categorys, and $categoryg is what that person has chosen already, I need it to show what that person already has chosen before he edits.
$sql="SELECT category FROM category ORDER by category ASC";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
//$id=$row["id"];
$category=$row["category"];
$options.="<OPTION VALUE=\"$category\">".$category;
}
?>
<SELECT NAME=categoryg>
<OPTION VALUE=0>Choose
<?=$options?>
</SELECT>