I have tried to get this box to pull usernames out of my table with no luck at all.
// create the SQL statement
$user = "SELECT name, uniqueid, password FROM milpacs_members";
if (!$user) {
exit("<p>Unable to obtain usernames from database.</p>");
}
echo "<p><label for=\"name\">Username: </label>";
echo "<SELECT NAME=\"name\" size=\"1\">";
echo "<OPTION SELECTED VALUE=\"\">--- Select User ---</OPTION>";
while ($user = mysql_fetch_array($user))
{
$uid = $user["uniqueid"];
$name = $user["name"];
echo "<OPTION VALUE='$uid'>$name</OPTION>";
}
echo "</SELECT>";