Php Mysql语法错误(我找不到错误是什么!)

Php Mysql语法错误(我找不到错误是什么!),php,mysql,Php,Mysql,我有以下mysql查询: REPLACE INTO application (export_date,application_id,title,recommended_age,artist_name,seller_name,company_url,support_url) VALUES (1362564068339,564783832,Eyelashes,4+,Char Room,Char Room,http://,http://ios.charroom.net/,http://itunes.a

我有以下mysql查询:

REPLACE INTO application (export_date,application_id,title,recommended_age,artist_name,seller_name,company_url,support_url) VALUES (1362564068339,564783832,Eyelashes,4+,Char Room,Char Room,http://,http://ios.charroom.net/,http://itunes.apple.com/app/)
我得到以下错误:

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 'Char Room,Char Room,http://,http://ios.charroom.net/,http://itunes.apple.com/app' at line 1
我似乎看不出错误在哪里。有人能帮我吗


您必须知道,上面的内容是实际查询的回应。此查询中的所有参数在进入查询之前都经过了mysql\u real\u escape\u字符串。

您必须在插入数据库的数据周围加引号。

您必须在插入数据库的数据周围加引号。

好吧,首先您
mysql\u real\u escape\u字符串

从PHP5.5.0开始,此扩展已被弃用,将来将被删除。相反,应该使用MySQLi或PDO_MySQL扩展

其次,您仍然需要在字符串周围加引号
mysql\u real\u escape\u string
将转义字符串中的引号,但它不会将引号添加到开始和结束处。

首先,您要
mysql\u real\u escape\u string

从PHP5.5.0开始,此扩展已被弃用,将来将被删除。相反,应该使用MySQLi或PDO_MySQL扩展

其次,您仍然需要在字符串周围加引号
mysql\u real\u escape\u string
将在字符串中转义引号,但不会将引号添加到开始和结束处