i’m to do use a drop down menu to display data in sql database field username, this is the code i have at the moment, no errors but doesnt work either, any suggestions?
[QUOTE]
<?php
require(“auth_admin.inc.php”);
require(“../conn.inc.php”);
$sqlquery = “Select Username from User_Info”;
$sql_result = mysql_query($sqlquery) or die(“Couldn’t read from database, please contact your system administrator: $sqlquery – ” . mysql_error());
?>
<h3>Which User ID would you like to select?
<select name = “username” size=”1″>
<Option Value=” “>Select One:</option>
<?php
for($u=0;$u<mysql_num_rows($sqlquery); $u++) {
$Username=mysql_result(sqlquery,$u,’Username’);
?>
<option value=”<? echo($Username); ?>”><? echo($Username); ?>
</option>
</h3>