Invalid participant ID.';
require_once 'footer.php';
exit;
}
$participant_id = $_GET['id'];
$participant = null;
try {
$db = db();
$stmt = $db->prepare("SELECT * FROM participants WHERE id = :id");
$stmt->bindParam(':id', $participant_id, PDO::PARAM_INT);
$stmt->execute();
$participant = $stmt->fetch(PDO::FETCH_ASSOC);
} catch (PDOException $e) {
echo '
Error: ' . $e->getMessage() . '
';
}
if (!$participant) {
echo 'Participant 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) . "
";
}
}
?>
Participant Details
Contact Info
NDIS Plan
Disability, Needs & Risks
Intake Notes