Home > Backend Development > PHP Tutorial > <>php中的insert用不了

<>php中的insert用不了

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:26:18
Original
954 people have browsed it

php中的insert用不了
但是把sql代码复制到mysql下又能正常运行,请问怎么回事,大神们帮帮忙

------解决方案--------------------
别换行看看 空格啊什么的去掉
------解决方案--------------------
五码无真相
------解决方案--------------------
所有特殊字段用 ` 引起来
------解决方案--------------------

探讨

解决了,是编码的问题,编辑器ansi编码,数据库utf-8编码,代码有中文就不知道为什么不能通过引用:

五码无真相
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
Latest Issues
php - pdo fails to insert data into database?
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
mongodb - How to batch insert data in mongoose?
From 1970-01-01 08:00:00
0
0
0
python - mysql insert error in multithreading
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template