php7連線mysql測試程式碼

Simon92發表於2018-12-12

php7連線mysql測試程式碼

<?php 
    $mysqli = new mysqli("localhost", "root", "password"); 
    if(!$mysqli)  { 
        echo"database error"; 
    }else{ 
        echo"php env successful"; 
    } 
    $mysqli->close(); 
?> 

  

相關文章