while ($row = mysql_fetch_row($result))
$str .='<option value='.$row.'';
if ($row == $UserID)
$str .= '>'.$row.'</option>';
My code is not working. I retrieved everything from the database. Let's say the drop down list has 10 values and UserID=4. But when I view the page, the 4th option is not selected. Instead the 1st option is selected. Why is that so?