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

php插入mysql出有关问题了

WBOY
WBOYOriginal
2016-06-13 13:11:38808browse

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

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

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

Statement:
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
Previous article: PHP反照API Next article: PHP数三退1面向对象的写法