I am trying to display all data from my MYSQL database but it results in a blank page:
<?
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM events";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "<b><center>Database Output</center></b><br><br>";
$i=0;
while ($i < $num) {
$title=mysql_result($result,$i,"title");
$title =mysql_result($result,$i,"title";
$description =mysql_result($result,$i,"description";
$organization =mysql_result($result,$i,"organization";
$start_month =mysql_result($result,$i,"start_month";
$start_day =mysql_result($result,$i,"start_day";
$start_year =mysql_result($result,$i,"start_year";
$start_hour =mysql_result($result,$i,"start_hour";
$start_min =mysql_result($result,$i,"start_min";
$start_ampm =mysql_result($result,$i,"start_ampm";
$end_month =mysql_result($result,$i,"end_month";
$end_day =mysql_result($result,$i,"end_day";
$end_year =mysql_result($result,$i,"end_year";
$end_hour =mysql_result($result,$i,"end_hour";
$end_min =mysql_result($result,$i,"end_min";
$end_ampm =mysql_result($result,$i,"end_ampm";
$time_varies =mysql_result($result,$i,"time_varies";
$location =mysql_result($result,$i,"location";
$street1 =mysql_result($result,$i,"street1";
$street2 =mysql_result($result,$i,"street2";
$city =mysql_result($result,$i,"city";
$zip =mysql_result($result,$i,"zip";
$area =mysql_result($result,$i,"area";
$href =mysql_result($result,$i,"href";
$submitter_name =mysql_result($result,$i,"submitter_name";
$submitter_phone =mysql_result($result,$i,"submitter_phone";
$submitter_email =mysql_result($result,$i,"submitter_email";
$primary =mysql_result($result,$i,"primary";
echo "<b>$title</b>";"$description";"$organization";"$start_month";"$start_day";"$start_year";"$start_hour";"$start_min";"$start_ampm";"$end_month";"$end_day";"$end_year";"$end_hour";"$end_ampm";"$time_varies";"$location";"$street1";"$street2";"$city";"$zip";"$area";"$href";"$submitter_name";"$submitter_phone";"$submitter_email";"$primary";
$i++;
}
?>