<!DOCTYPE html>
<html>
<head>
    <title>DB Test</title>
</head>
<body>

<h3>Database Connection Test</h3>

<?php
try {
    $db = \Config\Database::connect();

    if ($db->connID) {
        echo "<p style='color:green;'>✅ Database connected successfully!</p>";
    } else {
        echo "<p style='color:red;'>❌ Database connection failed.</p>";
    }
} catch (\Throwable $e) {
    echo "<p style='color:red;'>Error: " . $e->getMessage() . "</p>";
}
?>

</body>
</html>
