Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
require_once ("/Includes/test.php");
$databaseConnection = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
if ($databaseConnection->connect_error)
{
die("Database selection failed: " . $databaseConnection->connect_error);
}
?>
// this php code put into test.php
<?php
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');
define('DB_PASSWORD', 'password_here');
define('DB_HOST', 'localhost');
?>
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408