A useful solution above, but this is how I would do it. Just a matter of personal coding preferance.
$db = mysql_connect("localhost", "username", "password");
mysql_select_db("databasename", $db);
$SQL = "SELECT fieldOne, fieldTwo, fieldThree FROM yourTable";
$myResult = mysql_query($SQL, $db);
while(list($fieldOne, $fieldTwo, $fieldThree) = mysql_fetch_array($myResult))
{
$menuOne .= "<option value=\"$fieldOne\">$fieldOne</option>\r";
$menuTwo .= "<option value=\"$fieldTwo\">$fieldTwo</option>\r";
$menuThree .= "<option value=\"$fieldThree\">$fieldThree</option>\r";
}
mysql_close($db);
echo "<form action=\"WHERE YOU WANT THIS TO GO\" method=\"GET\">\r";
echo "<select name=\"fieldOne\">$menuOne</select>\r";
echo "<select name=\"fieldTwo\">$menuTwo</select>\r";
echo "<select name=\"fieldThree\">$menuThree</select>\r";
echo "<input type=\"Submit\" name=\"Submit\" value=\"Submit\">\r";
echo "</form>\r";
Make sure, obviously, that you change the database username/password, the field names in the SQL query, the form action, and the names in the <select> tags.