as part of a HTML form I am creating I would like to have a dropdown list which will list all the usernames in my database.
I thought the following code would do the
Below code is nice.. It was given by somebody else named aaronbd in this forum
query("select id, name from table"); echo ""; echo ""; echo ""; while ($row = $result->fetch_assoc()) { unset($id, $name); $id = $row['id']; $name = $row['name']; echo ''.$name.''; } echo ""; echo ""; echo ""; ?>