Invalid worker ID.';
require_once 'footer.php';
exit;
}
$worker_id = $_GET['id'];
$worker = null;
try {
$db = db();
$stmt = $db->prepare("SELECT * FROM support_workers WHERE id = :id");
$stmt->bindParam(':id', $worker_id, PDO::PARAM_INT);
$stmt->execute();
$worker = $stmt->fetch(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo '
Error: ' . $e->getMessage() . '
';
}
if (!$worker) {
echo 'Support worker 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