<?php
$host = "localhost";
$user = "rsudlwajo_website";
$pass = "Lamaddu.2026";
$db   = "rsudlwajo_website";

$conn = mysqli_connect($host, $user, $pass, $db);

if (!$conn) {
    die("Koneksi database gagal: " . mysqli_connect_error());
}

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

// Start session safely
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>
