mysql real escape string error

Posted by user547995 on Stack Overflow See other posts from Stack Overflow or by user547995
Published on 2010-12-26T22:41:42Z Indexed on 2010/12/26 22:54 UTC
Read the original article Hit count: 380

Filed under:
|

Code

mysql_query("INSERT INTO Account(User, Pw, email) VALUES('mysql_real_escape_string($_POST[user])', '$pw','mysql_real_escape_string($_POST[email]) ) ") or die(mysql_error());

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 ''mysql_real_escape_string(123) )' at line 1

Please help

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query