Home > Backend Development > PHP Tutorial > php插入mysql出有关问题了

php插入mysql出有关问题了

WBOY
Release: 2016-06-13 13:11:38
Original
828 people have browsed it

php插入mysql出问题了
很奇怪 我把INSERT语句echo出来,手动插入数据库没一点问题

但是用mysql_query 插入提示Incorrect string value: '\xA92012B...' for column 'description' at row 1
这个错误 我用mysql_error得出来的 求大神啊

------解决方案--------------------
mysql_query("set names gbk"); 再执行插入

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