<?php
// File: config/database.php
$servername = "localhost";
$username = "root";
$password = "root";  // Sesuaikan dengan password MySQL Anda
$dbname = "belloto_db";

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

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Set timezone
date_default_timezone_set('Asia/Jakarta');

// Set charset
$conn->set_charset("utf8mb4");
?>