Home php Mysql syntax error?

Mysql syntax error?

Author

Date

Category

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 ‘Key)
Values (‘user1’, ‘[email protected]’, ‘usrpsw’, ‘0’, ‘0’) ‘
AT LINE 1

Key int (11) field NULL (NO) DEFAULT 0


Answer 1, Authority 100%

$ sql = "insert Into League (User, Email, Password, Rival,` Key`)
           Values ('$ this- & gt; user', '$ this- & gt; email', '$ this- & gt; pass', '0', '0') ";

key and other reserved fields need to be taken in `

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions