当前位置:Gxlcms > PHP教程 > mysqlmysql_errormysqli_connect_error乱码,mysqliconnecterror_PHP教程

mysqlmysql_errormysqli_connect_error乱码,mysqliconnecterror_PHP教程

时间:2021-07-01 10:21:17 帮助过:1人阅读

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>

www.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"...

人气教程排行