WeirdMystery Posted May 16, 2010 Share Posted May 16, 2010 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/201977-this-errors/ Share on other sites More sharing options...
ldb358 Posted May 17, 2010 Share Posted May 17, 2010 you have a typo: $q2 = mysql_query("INSRET INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '$gameid', '$players')") or die(mysql_error()); //should be $q2 = mysql_query("INSERT INTO `players` (id, timestamp, gameid, players) VALUES ('NULL', 'NULL', '$gameid', '$players')") or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/201977-this-errors/#findComment-1059263 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.