Jump to content

Parse error


-twenty

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.