修复mysql乱码问题

This commit is contained in:
LyLme 2022-01-20 17:42:53 +08:00
parent cb976cdafa
commit 15ee7aa176

View File

@ -10,6 +10,7 @@ if(!$con =mysqli_connect($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$d
} else {
echo '连接数据库失败,['.mysqli_connect_errno().']'.mysqli_connect_error();
}
mysqli_query($con, "set names utf8");
}
?>