hi im having a problem displaying some fields from my table.
I want to display all the eventtypes from the event table in a drop down menu. but all i get is a list of numbers from the eventid column
any ideas guys
here is my code
$event=mysql_query("SELECT * FROM event ORDER BY Date ASC")
OR DIE("Unable to find events. Error: ".mysql_error());
print("<select name=\"Eventtype\" size=1>\n");
print("<option value=\"b\">Select");
print("<option value=\"b\">-----");
while($row = mysql_fetch_array ($event))
{
print("<option value=\"$row[1]\">$row[0]\n");
}
print("</select>\n");