-twenty Posted February 9, 2010 Share Posted February 9, 2010 Hi all, I'm having some problems with a simple query and can't quite figure out what the cause is.. I've searched the syntax error, but it doesn't appear like I am missing anything. Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM on line 74 <?php $eventsquery = "SELECT * FROM events WHERE PO = $thispo"; $eventsqueryhandle = mysql_query($eventsquery) or die ("Events query failed: " .mysql_error()); for($count=0;$eventsrow = mysql_fetch_array($eventsqueryhandle);++count) { echo "<tr>"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['date']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['userid']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['details']</td>\r\n"; echo "</tr>; } ?> Link to comment https://forums.phpfreaks.com/topic/191492-parse-error/ Share on other sites More sharing options...
premiso Posted February 9, 2010 Share Posted February 9, 2010 You are missing a quote: echo "</tr>;" Link to comment https://forums.phpfreaks.com/topic/191492-parse-error/#findComment-1009450 Share on other sites More sharing options...
-twenty Posted February 9, 2010 Author Share Posted February 9, 2010 Same thing... *sigh* <?php $eventsquery = "SELECT * FROM events WHERE PO = $thispo"; $eventsqueryhandle = mysql_query($eventsquery) or die ("Events query failed: " .mysql_error()); for($count=0;$eventsrow = mysql_fetch_array($eventsqueryhandle);++count) { echo "<tr>"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['date']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['userid']</td>\r\n"; echo "<td class=\"neworder2\" align=\"center\">$eventsrow['details']</td>\r\n"; echo "</tr>"; } ?> Link to comment https://forums.phpfreaks.com/topic/191492-parse-error/#findComment-1009465 Share on other sites More sharing options...
premiso Posted February 9, 2010 Share Posted February 9, 2010 Change each of these items to be as follows: //From $eventsrow['details'] //to {$eventsrow['details']} Inside of the echos. Link to comment https://forums.phpfreaks.com/topic/191492-parse-error/#findComment-1009590 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.