Jump to content

MySQL Syntax Error...


WeirdMystery

Recommended Posts

Its giving me a freakishly hard time, returns...

 

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 'INSRET INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '' at line 1

 

$q2 = mysql_query("INSRET INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '$gameid', '$players')") or die(mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/201984-mysql-syntax-error/
Share on other sites

Its giving me a freakishly hard time, returns...

 

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 'INSRET INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '' at line 1

 

$q2 = mysql_query("INSRET INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '$gameid', '$players')") or die(mysql_error());

 

Wow, am I really that stupid? I spelled INSERT wrong...

Link to comment
https://forums.phpfreaks.com/topic/201984-mysql-syntax-error/#findComment-1059256
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.