minus the syntax errors (i freewrote it in here) this should pull all users, put them in an array like User=>Id, then print them out to a select box with the value = id, and text = username
i used array_unique too because it will only print unique usernames (if thats an issue)
$users=array();
$result=mysql_query("SELECT * FROM users ORDER BY username ASC");
while($data=mysql_fetch_array($result))
$users[$data['username']]=$data['id'];
echo "<select name='user'>";
foreach(array_unique($users) as $k=>$v)
echo "<option value=$v>$k";
echo "</select>";
im not sure if thats what u meant, but its what i got from the ?