<?php
$host = "localhost";
$dbname = "fiberule_wedding";
$username = "fiberule_weddingadmin";
$password = "?At.p$5^QIii0Qd)";

try {
    $pdo = new PDO(
        "mysql:host=$host;dbname=$dbname;charset=utf8mb4",
        $username,
        $password,
        [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
    );
} catch (PDOException $e) {
    die("Database connection failed.");
}