<?php
$host = 'localhost';
$dbname = 'bbcrbjaw_travel_planner';
$username = 'bbcrbjaw_travel'; // 依你的環境修改
$password = 'trave1P@ss';     // 依你的環境修改

try {
    $pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8mb4", $username, $password);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    die("資料庫連線失敗: " . $e->getMessage());
}
?>