<?php
// db_connect.php

$servername = "localhost";
$username = "karofuxg_kiboga1ad";
$password = "julius130@karomu";
$dbname = "karofuxg_kiboga1";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    // In production, it is better to log the error rather than showing it to the user
    die("Connection failed: " . $conn->connect_error);
}

// Set timezone to East Africa Time
date_default_timezone_set('Africa/Kampala');

// Optional: Set charset to handle special characters correctly
$conn->set_charset("utf8mb4");
?>