Originally posted by Frapster
can you post the code you're trying to use? I just spent the last 4 days working on this for my site and I actually might be able to help you.
hello frapster,
well, i sort of figured it out myself...
suppose the database contains list of usernames and I wanna keep ritu as default, then
$query="select user from userlist";
$result=mysql_query($query);
while($row=mysql_fetch_array($result))
{
echo "<option value=\"$row['user'] \"
if($row['user']=="ritu") echo "selected">$row['user']";
}