query("SELECT id, name, email, role, status, created_at FROM team_members ORDER BY created_at DESC"); $members = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // In a real app, you'd log this error. For now, we'll just show a message. echo '
Could not connect to the database.
'; } ?>

Team Members

Name Email Role Status Joined Actions
No team members found. Add one to get started!
' . htmlspecialchars(ucfirst($member['status'])) . ''; ?>