Sorry to post on this again. I posted on doing a drop down list using oracle functions some time ago. Now i need to make the drop down, a single drop down for mysql. I have started to change some of the oracle in the following code, but i still dont know what alot of the functions do yet. Can anyone help or point me in the right direction. I just need to change the functions from oracle to mysql ...
<form method="GET" action="list.php">
<select name="schoolchoice">
<?
$conn = mysql_connect("localhost", "root", "password");
$sql = "Select * FROM book_list";
$result = mysql_query($sql, $conn);
if(OCIExecute($result))
{
while(OCIFetchInto($result, $row, OCI_ASSOC))
{
printf("<option value='%s'>%s</option>\n", htmlentities($row['SCHOOL']), htmlentities($row['NAME']));
}
}
?>
</select>
<input type="submit" />
</form>
Thanks in advance