<?php
// includes/db.php
$host = 'localhost';
$dbname = 'intlbmel_db';
$user = 'intlbmel_db';
$pass = 'Bank@2025'; // set accordingly

try {
    $pdo = new PDO("mysql:host={$host};dbname={$dbname};charset=utf8mb4", $user, $pass, [
        PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
    ]);
} catch (PDOException $e) {
    // In production, do not echo error details.
    die("DB connection failed: " . $e->getMessage());
}

require_once __DIR__ . '/functions.php';
