Hi I am very new to this and is stuck trying to make this work... :-(
I want a 2 dropdown box'es which is populated from a mysql db (that I can do, I think :-p )
[PHP]
$sql="SELECT X FROM table WHERE Y=Z";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
$X=$row["X"];
$options.="<option VALUE=\"$X\">".$X.'</option>';
}
?>
<SELECT NAME=something>
<OPTION VALUE=0>choose
<?php echo $options ?>
</SELECT>[/PHP]
I then want a button which runs a mysql update with the selected input in the dropdown boxes
the DB table is:
name
choice1 (should be from dropdownbox1)
choice2 (should be from dropdownbox2)
also (if possible) I would like that the selected value is the one that is the one in the db.
Really hope someone can help me :-)