I want to make a page that have a form with category and names, and I should retrieve the names from the databases. I've asked this question before, now I modified my code and the result says that "Query was empty". I don't know why it says like that. Here is all my page code.
<html>
<head>
<title>Assign Examiner</title>
</head>
<body>
<?php include('../include/dbconnect.php');
$names=$_POST['user'];
$exp = $_POST['expert'];
$mysql_i=mysql_query("SELECT name FROM user WHERE expert='".$exp."'");
$mysql_res = mysql_query($mysql_i) or die(mysql_error());
mysql_close();
?>
<form name="examiner" action="" method="post">
<table align="center" width="50%" border="1">
<tr>
<td>Category :</td>
<td><select name="expertise"><option value="multimedia">Multimedia
<option value="security">Security & Networking
<option value="mobile">Android Mobile
<option value="web">Web Development
</option></option</option></option>
</select>
</td>
</tr>
<tr>
<td>Name :</td>
<td><select name="exam"><option value="<?php echo $mysql_i;?>">PLEASE CHOOSE</option></select></td>
</tr>
</body>
</html>