Here is my code:
$conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); if ($conn->connect_error) { die(\'Database error:\' . $conn->connect_error