"; require_once 'db_login.php'; // Connect to server //$db_server = mysqli_connect($db_hostname, $db_username, $db_password, $db_database); $db_server = mysqli_connect($db_hostname, $db_username, $db_password); if (!$db_server) { die("Unable to connect to MySQL server " . $db_hostname); } else { echo "Connected to MySQL server " . $db_hostname . "
"; } // do not need to select database if the first version of the mysqli_connect command above is used // https://www.php.net/manual/en/mysqli.select-db.php $db_select = mysqli_select_db($db_server, $db_database); if (!$db_select) { die("Unable to select database " . $db_database); } else { echo "Selected database " . $db_database . "
"; } ?>