query("SELECT id, first_name, last_name, status, program FROM residents ORDER BY last_name, first_name"); $residents = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // Handle DB error - for now, just show a simple message $error_message = "Error fetching resident data."; // In a real app, you'd log this error. } ?>
| Name | Program | Status | Action |
|---|---|---|---|
| View | |||
| No residents found. | |||