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