<?php
require_once __DIR__ . '/db/config.php';
try {
    $stmt = db()->query("SELECT id, username, email FROM users");
    $users = $stmt->fetchAll();
    echo "Liste des utilisateurs :\n";
    foreach ($users as $user) {
        echo "- ID: {$user['id']} | Username: {$user['username']} | Email: {$user['email']}\n";
    }
} catch (Exception $e) {
    echo "Erreur : " . $e->getMessage();
}
unlink(__FILE__);
