prepare("SELECT * FROM attendees WHERE id = ?"); $stmt->execute([$attendee_id]); $attendee = $stmt->fetch(); if ($attendee) { $stmt = db()->prepare("SELECT * FROM webinars WHERE id = ?"); $stmt->execute([$attendee['webinar_id']]); $webinar = $stmt->fetch(); } } catch (PDOException $e) { // Log error } if (!$attendee || !$webinar) { http_response_code(404); echo "Registration not found."; exit; } // For now, just a welcome message. In a real scenario, this would redirect to the webinar platform. ?>
You are now joining the webinar: = htmlspecialchars($webinar['title']) ?>
The webinar is scheduled for: = (new DateTime($webinar['scheduled_at']))->format('l, F j, Y \a\t g:i A T') ?>