here is my code.....
Code: Select all
<?
$qry = "select test_id, user_id from QDescr_4Eval";
$result = mysql_query($qry);
?>
<form action = "evaluation_page_exec.php" method = "post">
<div align = "center"><table>
<th></th>
<tr>
<h2>Tests available for Evaluation</h2>
<td>
<select name="test_id" id="Test" class="" tabindex="14"><option value = "">(Test_id), (User_id)</option>
<?
while($row = mysql_fetch_row($result)) {
if($t_id == $row[0] && $u_id == $row[1]) {
;
}
else {
echo "<option value = $row[0] >$row[0], $row[1]";
$t_id = $row[0];
$u_id = $row[1];
}
}
?>
</select>
</td>
<td> </td>
<td>
<input type = 'submit' name = 'submit' value = 'Submit'></input>
</td>
</tr>
</form>
</table></div>