I want to make a combobox within it names of people... which i got from a mysql database... but it width this code it won't work... can anyone say what the problem is?
<form action="classer.php" method="post">
<?php
mysql_connect('localhost','*****','****');
mysql_select_db('db*****');
$gift="SELECT * from docenten order by abbrname";
$result=mysql_query($gift);
?>
<p>
<select name="teachername">
<OPTION>
<?php
while($name=mysql_fetch_array($result))
{
$name= $name[1]." ".$name[2];
}
?>
</OPTION>
</select>
<input type="submit" name="send" value="classlist" />
</p>
</form>
thanx