<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>