<?php
require_once 'includes/database.php';
echo "Database connected successfully!<br>";

try {
    // Test query
    $stmt = $pdo->query("SELECT COUNT(*) as count FROM users");
    $result = $stmt->fetch();
    echo "Total users in database: " . $result['count'];
} catch (Exception $e) {
    echo "Error: " . $e->getMessage();
}
?>