时间:2021-07-01 10:21:17 帮助过:1人阅读
<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>
http://www.bkjia.com/PHPjc/1140325.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1140325.htmlTechArticlemysql mysql_error mysqli_connect_error 乱码,mysqliconnecterror html head meta charset ="utf-8" title / title / head body ? php $con = mysqli_connect("localhost", "root", "root"...