<?php
// ============================================
// এখানে আপনার cPanel MySQL তথ্য বসান
// cPanel → MySQL Databases থেকে DB, User তৈরি করে
// User-কে DB-তে ALL PRIVILEGES দিয়ে যুক্ত করুন।
// ============================================
define('DB_HOST', 'localhost');
define('DB_NAME', 'citizens_nid');   // যেমন: cpaneluser_nid
define('DB_USER', 'citizens_nid');   // যেমন: cpaneluser_nid
define('DB_PASS', 'citizens_nid');

try {
    $pdo = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME.";charset=utf8mb4",
        DB_USER, DB_PASS,
        [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
         PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC]);
    // বাংলাদেশ সময় (Asia/Dhaka = +06:00)
    $pdo->exec("SET time_zone = '+06:00'");
} catch (Throwable $e) {
    die("DB Connection failed. config/db.php ঠিক করুন।");
}
