The dropdown looks like this:
Code: Select all
<option value = "0">Select from the menu</option>
<option value = "1">some text</option>
<option value = "2">some text </option>
<option value = "3">some text </option>SOOOOO, I got this far: checking the number in the database, going through numbers 0-3 and adding "selected" to the number which corresponds to the num in the db.
Code: Select all
$whichselected = mysql_result ($q)
for($n=0; $n<=3; $n++) {
if $whichselected = $n {
$number = "'".$n ."'". "selected";
} else {
$number = "'".$n."'";
}
}Code: Select all
echo "<option value=". $arrayї0] . "Select from the menu</option>"
echo "<option value=". $arrayї1]. "some text" etc...all best,
pschmchn