欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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>

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"...
相关标签: php