<?php
// ==================== DATABASE CONNECTION ====================
// Hostinger Database Credentials
define('DB_HOST', 'localhost');
define('DB_NAME', 'sai7755_college');
define('DB_USER', 'sai7755_college');
define('DB_PASS', 'Admin_66666');

// Create mysqli connection with $db variable
$db = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);

// Check connection
if (!$db) {
    die("Database connection failed: " . mysqli_connect_error());
}

// Set charset to utf8mb4
mysqli_set_charset($db, "utf8mb4");

// Enable error reporting
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);

?>