<?php
/**
 * Database Configuration - OPTIONAL
 * 
 * You can use this file as a reference, but the database connection
 * is now embedded in index.php for local development.
 * 
 * For production, update the credentials in index.php directly
 */

// Database credentials - UPDATE THESE FOR YOUR ENVIRONMENT
$db_host = 'localhost';       // MySQL server address
$db_user = 'root';            // MySQL username
$db_password = '';            // MySQL password
$db_name = 'billdesk_db';     // Database name

// Create connection using MySQLi
$conn = new mysqli($db_host, $db_user, $db_password, $db_name);

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

// Set charset to UTF-8
$conn->set_charset("utf8mb4");

// Enable error reporting for debugging
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);

?>
