Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Problem sending form data to email and insert in database


bmimatt - 6:45 pm on Aug 4, 2010 (gmt 0)


Try moving calls to mysql_escape_string() outside of the query itself, along these lines:

$p_id = mysql_real_escape_string($ACC["ref"]);
$p_name = mysql_real_escape_string($ACC["name"]);
[...]

and then in your query:

INSERT INTO whatever SET p_id = '$p_id', p_name = '$p_name'[...]


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/4177620.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com