php不能往mysql数据库添加汉字字母,只能添加数字的解决方法

推荐使用以下格式写sql语句:需要在“”号里的php变量添加单引号

"insert into info (username,contact,dt,message) values ('$username','$contact',now(),'$message')"

猜你喜欢

转载自blog.csdn.net/weixin_38291260/article/details/80719270