php链接数据库时候中文显示错误代码的处理方法

  少个header声明

<?php
header("Content-type: text/html; charset=utf-8"); 
把这一排字放到前面就好了
原文地址:https://www.cnblogs.com/sq45711478/p/6007618.html