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. Link to comment https://forums.phpfreaks.com/topic/199294-syntax-error/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.