<?php
$host = 'localhost';
$username = 'root';
$password = 'root';
$database = 'kehadiran_ujian';

$conn = new mysqli($host, $username, $password, $database);

if ($conn->connect_error) {
    die("Koneksi gagal: " . $conn->connect_error);
}
?>