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. ?> Welcome to the Webinar

Welcome, !

You are now joining the webinar:

The webinar is scheduled for: format('l, F j, Y \a\t g:i A T') ?>