mysql插入报错有关问题

WBOY
Release: 2016-06-13 12:17:51
Original
955 people have browsed it

mysql插入报错问题
INSERT INTO `Sale_Order`  (`id`,`number`,`order_id`, `order_status`, `buyer_name`, `buyer_email`, `buyer_phone_number
`, `total_price`, `currency`, `phone`, `postal_code`, `recipient_name`, `ship_address`, `ship_state`
, `city`, `country`, `account`, `lastup_date`, `payments_date`, `delivery_date`, `download_date`, `delivery_warehouse
`) VALUES (NULL,'1','249-4503994-1570232','2','杉本 圭\',[email protected]','','1000
.00','JPY','','225-0003','ローソ\ンL たまプラーザ駅南口','横浜市青葉区新石川3‐15‐2  ','神奈川県','--','JP','JP_John','','2015-03-27T20
:43:50+09:00','',NOW(),'FBA')

以上报错
 #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 [email protected]','','1000 .00','JPY','','225-0003','??' at line 2


插入之前都转了UTF-8的,请问这里面,哪有问题??
------解决思路----------------------
先用mysql_real_escape_string做一次转义

<br />$name = mysql_real_escape_string($name);<br />$sqlstr = "insert into table(`name`) values('".$name."')";<br />
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!