Jump to content

MySQL problem * solved


Drezard

Recommended Posts

hello, I have a problem with this line of code:

[CODE]
$query = "INSERT INTO profiles (user, email, name, add, sub, postcode, state) VALUES ('$user', '$email', '$name', '$add', '$sub', '$post', '$state')";
[/CODE]

It comes up with this error when i try and execute that query:

[QUOTE]
Error in query: INSERT INTO profiles (user, email, name, add, sub, postcode, state) VALUES ('drezard54', 'adgadf', 'adfgdafgadgadg', 'adgadf', 'adgadf', 'adgadf', 'adgadf').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 'add, sub, postcode, state) VALUES ('drezard54', 'adgadf', 'adfgdafgadgadg', 'adg' at line 1
[/QUOTE]

I dont understand whats wrong with my query?

- Cheers, Daniel
Link to comment
https://forums.phpfreaks.com/topic/30108-mysql-problem-solved/
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.