mysql mysql_error mysqli_connect_error 乱码,mysqliconnecterror_PHP教程
程序员文章站
2022-05-01 23:33:20
...
mysql mysql_error mysqli_connect_error 乱码,mysqliconnecterror
html>
head>
meta charset="utf-8">
title>title>
head>
body>
php
$con = mysqli_connect("localhost", "root", "root","ehr");
if (!$con) {
//转码
echo 'Could not connect: ' . iconv('gbk', 'utf-8', mysqli_connect_error());
}else{
echo 'Connect:Access ';
}
?>
body>
html>
上一篇: 诊断Oracle RMAN备份慢的原因
下一篇: 移动端video视频播放的问题案例总结