Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
531 views
in Technique[技术] by (71.8m points)

php mysqli 插入数据错误,可能与中文有关,求解答

图片描述

浏览器中

图片描述

方法

图片描述

类中

之前在浏览器中打印出来$name 是%xxxx这样的,然后用了urlencode()能打印出中文了,但是还是插入不进去

sql语句在phpmyadmin中是可以插入的。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你这query不对吧?还有一个是字符串字段需要''或是""包含


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...