<?php
// 🐘 NAKED TEST: 移除 Try/Catch，直接讓 PDO 錯誤顯示

// --- 最終已確認的正確連線憑證 ---
$host = 'localhost';              
$db   = 'flowzoocom_flowzoo';      
$user = 'flowzoocom_admin';        
$pass = 'j%d?2PW;7X-0C,lE';        
// --------------------------------

$charset = 'utf8mb4';
$dsn = "mysql:host=$host;dbname=$db;charset=$charset";
$options = [
    PDO::ATTR_ERRMODE            => PDO::ERRMODE_EXCEPTION,
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    PDO::ATTR_EMULATE_PREPARES   => false,
];

// 強制顯示錯誤 (通常在測試時需要)
ini_set('display_errors', 1);
error_reporting(E_ALL);

// 執行連線：如果錯誤，PHP 將會顯示完整的錯誤信息和行號
$pdo = new PDO($dsn, $user, $pass, $options);

echo "✅ ULTIMATE CONNECTION SUCCESS. PDO Object Created.";

// 請不要將此檔案用於生產環境！