prepare("SELECT * FROM clients WHERE id = ?"); $stmt->execute([$client_id]); $client = $stmt->fetch(); if (!$client) { header('Location: clients.php'); exit; } // Fetch attachments $attachStmt = $pdo->prepare("SELECT * FROM client_attachments WHERE client_id = ?"); $attachStmt->execute([$client_id]); $attachments = $attachStmt->fetchAll(); } catch (Exception $e) { error_log("View client error: " . $e->getMessage()); header('Location: clients.php'); exit; } include 'includes/header.php'; ?>
View and manage client information
No documents uploaded yet