parse error please help
Posted: Sat Apr 25, 2009 3:54 am
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/lionsclub/events.inc.php on line 20
I've been at it for hours trying to figure this out.
I've been at it for hours trying to figure this out.
Code: Select all
<h2 align = "center">Lions Club Events</h2><br />
<?php
$con = mysql_connect("localhost", "guest" , "guest") or die('sorry, the site database is down for maintanence');
mysql_select_db("lionsclub", $con) or die('sorry, this portion of the site is down for maintanence');
$query = "SELECT events,title FROM events ORDER BY events,eventid ASC
$result = mysql_query($query) or die('Sorry, could not retrieve events at this time');
$num_rows= mysql_num_row($result)
if ($num_rows == 0)
{
echo '<h3>Sorry, no events posted at this time, please come back later</h3>';
} else
{
while($row=mysql_fetch_array($result, MYSQL_ASSOC))
{
$eventid = $row['eventid'];
$title = $row['title'];
$desc = $row['desc'];
$sdate = $row['sdate'];
$stime = $row['stime'];
$edate = $row['edate'];
$etime = $row['etime'];
$club = $row['club'];
$ocdesc = $row['ocdesc'];
echo "$title $sdate, $stime $edate, $etime";
echo "$shortdec";
echo "$ocdesc";
}
}
?>