header("content-type:text/html;charset=utf8");//加句这个在程序的最前面html
$conn->query("set names utf8"); //提交前,加入。解决数据库中文乱码数据库