<?php
// DB details
$dbHost = 'localhost';
$dbUsername = 'lahs_Mendohza';
$dbPassword = '@Angels22*#';
$dbName = 'lahs_schdb';

// Create connection
$db = new mysqli($dbHost, $dbUsername, $dbPassword, $dbName);

// Check connection
if ($db->connect_error) {
    die("Unable to connect database: " . $db->connect_error);
}

// Make the connection variable global
global $db;

// Optional: Set the character set to utf8
$db->set_charset("utf8");
?>
