• My code is fucked.
    6 replies, posted
Error: [code] 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 'key, used) VALUES('3611421328969301','0')' at line 1 [/code] CODE: [code] $insert = mysql_query("INSERT INTO sk_hs_keys (key, used) VALUES('$key','0')", $con) or die(mysql_error()); [/code]
Can you also post a picture of your table in phpmyadmin / something else?
Numbers don't need to be in quotes as strings. [CODE]INSERT INTO sk_hs_keys (key, used) VALUES($key, 0)[/CODE]
-snip- [editline]asd[/editline] ^ what he said
the [i]real[/i] problem here is that key is a reserved word. quote it with ``
thanks swift :)
-late
Sorry, you need to Log In to post a reply to this thread.