derrida
asked on
mysql insert doesn't work
Hi
i have an insert that get me this error:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 'load,alerts_values,user_i d) VALUES ('3', 'someone@gmail.com', 'load3', '55', '10'' at line 1' in....
i have this sql:
$testsql = "INSERT INTO alerts_settings (alert_type, emails, load,alerts_values,user_id ) VALUES ('3', 'someone@gmail.com', 'load3', '55', '10')";
the actual thing is with variables from the form. but since it gave me the error i tried manual. get the same error.
what am i missing here?
best regards
i have an insert that get me this error:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 'load,alerts_values,user_i
i have this sql:
$testsql = "INSERT INTO alerts_settings (alert_type, emails, load,alerts_values,user_id
the actual thing is with variables from the form. but since it gave me the error i tried manual. get the same error.
what am i missing here?
best regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER