query("SELECT COUNT(*) FROM attendees"); $total_records = $total_stmt->fetchColumn(); $total_pages = ceil($total_records / $records_per_page); // Get records for the current page $stmt = $pdo->prepare("SELECT id, first_name, last_name, email, created_at, how_did_you_hear, company FROM attendees ORDER BY first_name ASC, last_name ASC LIMIT :limit OFFSET :offset"); $stmt->bindValue(':limit', $records_per_page, PDO::PARAM_INT); $stmt->bindValue(':offset', $offset, PDO::PARAM_INT); $stmt->execute(); $attendees = $stmt->fetchAll(PDO::FETCH_ASSOC); // Get data for the chart $chart_stmt = $pdo->query("SELECT DATE(created_at) as registration_day, COUNT(*) as user_count FROM attendees GROUP BY registration_day ORDER BY registration_day"); $chart_data = $chart_stmt->fetchAll(PDO::FETCH_ASSOC); $chart_labels = json_encode(array_column($chart_data, 'registration_day')); $chart_values = json_encode(array_column($chart_data, 'user_count')); ?> Admin Dashboard

Admin Dashboard

Welcome, !

Daily Registrations

Registered Attendees

Download CSV
ID First Name Last Name Email Source Company Registered At Actions
No attendees found.
Edit