while ($row=mysql_fetch_array($result)) { echo ("<OPTION VALUE=".$row[id]." SELECTED>".$row[nombre]."\n"); }