Invalid staff ID.';
require_once 'footer.php';
exit;
}
$staff_id = $_GET['id'];
$staff = null;
try {
$db = db();
$stmt = $db->prepare("SELECT * FROM care_staff WHERE id = :id");
$stmt->bindParam(':id', $staff_id, PDO::PARAM_INT);
$stmt->execute();
$staff = $stmt->fetch(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo '
Error: ' . $e->getMessage() . '
';
}
if (!$staff) {
echo 'Care staff member not found.
';
require_once 'footer.php';
exit;
}
function render_detail_item($label, $value, $is_currency = false) {
if (!empty($value)) {
$display_value = htmlspecialchars($value);
if ($is_currency) {
$display_value = '$' . number_format((float)$value, 2);
}
echo "{$label}{$display_value}
";
}
}
function render_detail_area($label, $value) {
if (!empty($value)) {
echo "{$label}" . htmlspecialchars($value) . "
";
}
}
?>
Personal & Contact
Compliance
Work Details