Cannot connect to database (000webhost)

后端 未结 2 1264
攒了一身酷
攒了一身酷 2021-01-23 04:04
$host=\"mysql13.000webhost.com\";      
$username=\"a1346032\"; 
$password=\"\"; 
$db_name=\"a1346032_newdb\"; 
$tbl_name=\"members\"; 

mysqli_connect(\         


        
2条回答
  •  别那么骄傲
    2021-01-23 04:35

    Use this at that place

    $host="localhost"; $username="a1346032"; $password=""; $db_name="a1346032_newdb"; $tbl_name="members"; $con=mysqli_connect("$host", "$username", "$password", $db_name)or die("cannot connect"); mysqli_select_db``($con, "$db_name")or die("cannot select DB");

提交回复
热议问题