Jump to content

SQL Syntax Error


aebstract

Recommended Posts

mysql_query("UPDATE participants t1 JOIN registrations t2 ON (t1.regid = t2.id) SET `cr` = 'ql' WHERE class = '$_GET[class]' && eventid = '$_GET[event]'") or die(mysql_error());

 

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 '' at line 1

 

After I ran the query and got this error, I checked my database and it appears that all of the rows are updating correctly, but I'm left with this blank page error and I need to be redirected. Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/198508-sql-syntax-error/
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.