1

Hi I am developing a website that has users fill in a form and submit data to a database but I can't get any of it to submit. Please can someone help me find the problem. Thanks.

Here is the pages PHP/HTML.

http://pastebin.com/8jfWrByd

and here is the table's layout

http://pastebin.com/E06Ac8Yx

When I go to try and post an item I get the following 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 'Desc, Tips) VALUES ('Base Invaders', 'Ron', '27', '12500', '850', '1', '4', 'TP ' at line 1

Please help me!

1 Answer 1

3

DESC is a reserved word. If you want to use it as a column name, you have to quote it with backticks.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, How could I be so blind!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.