prepare("SELECT * FROM clients WHERE client_id = ?"); $stmt->execute([$_GET['client_id']]); $viewingClient = $stmt->fetch(PDO::FETCH_ASSOC); $credentials = []; $notes = []; if ($viewingClient) { $credStmt = $pdo->prepare("SELECT * FROM credentials WHERE client_id = ? ORDER BY name ASC"); $credStmt->execute([$viewingClient['client_id']]); $credentials = $credStmt->fetchAll(PDO::FETCH_ASSOC); $noteStmt = $pdo->prepare( "SELECT n.*, u.display_name FROM notes n " . "JOIN users u ON n.user_id = u.user_id " . "WHERE n.client_id = ? ORDER BY n.created_at DESC" ); $noteStmt->execute([$viewingClient['client_id']]); $notes = $noteStmt->fetchAll(PDO::FETCH_ASSOC); } } else { $stmt = $pdo->query("SELECT * FROM clients ORDER BY name ASC"); $clients = $stmt->fetchAll(PDO::FETCH_ASSOC); } ?> Dashboard - FlexPass
Back to Client List Add Credential

Status:


Credentials

Name Username Password Last Modified Actions
Edit Delete
No credentials found for this client.

Notes

""

Added by on

No notes found for this client.

No notes found for this client.

Clients

Add New Client
Client ID Name Status Actions
View
No clients found.