Been at this for a bit and I cannot figure out what is wrong. I am trying to output a mySQL query into a drop down (just using PHP). The dropdown works, but there are no values in the list. However, it does seem to be aware of how many rows are in the table. Please advise. Thanks!
<html>
<head>
<body>
<table border="1">
<?php
require_once ('includes/database.php');
$query = "SELECT User_ID FROM User_Account";
$result = mysqli_query ($my_dbhandle, $query);
echo "<select name=dropdown value=''>Dropdown</option>";
while($r = mysqli_fetch_array($result)){
echo "<option value=" . $r['User_ID'] . ">" . $r['User_ID'] . "</option>";
}
echo "</select>";
mysqli_close($my_dbhandle);
?>
</table>
</body>
</head>
</html>