query("SELECT id, username, role FROM users ORDER BY id DESC"); $users = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // For a real app, you'd want to log this error die("Could not connect to the database or fetch users."); } ?>
A list of all users in the system.