修复mysql乱码问题
This commit is contained in:
parent
cb976cdafa
commit
15ee7aa176
|
@ -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");
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue