aebstract Posted April 21, 2010 Share Posted April 21, 2010 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '&& cr >= '1' ORDER BY qp' at line 1 $query = mysql_query("SELECT * FROM participants INNER JOIN registrations ON registrations.id = regid WHERE class = '$_GET[class]' && eventid = $_GET[event] && cr >= '1' ORDER BY qp") or DIE(mysql_error()); edit: nvm, would this be caused by $_GET[class] not being set? It wasn't set in this one case when I got the message, when I set it, it was gone. Quote Link to comment https://forums.phpfreaks.com/topic/199294-syntax-error/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.