Back to Admin
Chat History for = htmlspecialchars($user['name']) ?>
= htmlspecialchars($user['email']) ?>
Chat Sessions
No messages found in this session.
```php 0) { $sql = "SELECT * FROM chat_logs WHERE user_id = $user_id AND session_id = $selected_session ORDER BY timestamp ASC"; $result = mysqli_query($conn, $sql); while ($row = mysqli_fetch_assoc($result)) { $messages[] = $row; } } ?>
= htmlspecialchars($user['email']) ?>
No messages found in this session.