<?php
define('db_server','localhost');
define('db_user','samm');
define('db_password','12345');
define('db_name','sam');
$link=mysqli_connect(db_server,db_user,db_password,db_name);
if($link===false){
die("Error: Could not connect: ". mysqli_connect_error());
}else{
die("good connect");
}
?>
Youtube: