I'm trying to create a dropdown list in a HTML form populated by results for a mysql query. However it is not loading and i am just given a white screen.
$query = mysql_query("SELECT eventName from sgt")or die(mysql_error());
while($row = mysql_fetch_array($query))
{
echo "<option value=\"$row['eventName']\">" $row['eventName']"</option>";
}
Any help would be much appreciated.