Changed it to:
while($row = mysql_fetch_assoc($query)) {
$users = $row['username'];
}
echo "
<select name='cpuser'>
<option value='$users'>$users</option>
</select>
";
It now outputs one drop-down menu but it only displays one of the users.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.