<?php
$host = "localhost";
$user = "root";
$password = "";
$database = "kampus";

$conn = mysqli_connect($host, $user, $password, $database);

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