prepare("SELECT * FROM residents WHERE id = ?"); $stmt->execute([$resident_id]); $resident = $stmt->fetch(PDO::FETCH_ASSOC); if (!$resident) { header("Location: staff_dashboard.php"); exit; } // Fetch action plans for the resident $stmt = $pdo->prepare("SELECT * FROM action_plans WHERE resident_id = ? ORDER BY created_at DESC"); $stmt->execute([$resident_id]); $action_plans = $stmt->fetchAll(PDO::FETCH_ASSOC); ?>
Name:
Email:
Phone:
Program:
Status:
Date of Birth:
| Title | Status | Due Date | Created On | Action |
|---|---|---|---|---|
| No action plans found for this resident. | ||||
| View/Edit | ||||