= "";
$db_port = "3380";
//Create mysqli Object
$mysqli = new mysqli($db_host,$db_name,$db_user,$db_pass,$db_port);
//Error Handler
if(mysqli_connect_errno( )){
echo "This Connection Failed" .mysqli_connect_error();
die();
}
Your credentials are incorrect
Your code is incorrect: $mysqli = new mysqli("localhost", "user", "password", "database");
Use this one : $mysqli = new mysqli($db_host, $db_user, $db_pass, $db_name, $db_port);
Hi , you must adjust port as 3380 to 3306
Обсуждают сегодня