prepare("SELECT * FROM attendees WHERE id = ?"); $stmt->execute([$user_id]); $attendee = $stmt->fetch(); if ($attendee) { // Fetch webinar details $stmt = db()->prepare("SELECT * FROM webinars WHERE id = ?"); $stmt->execute([$attendee['webinar_id']]); $webinar = $stmt->fetch(); } else { $error = 'Could not find your registration details.'; } } catch (PDOException $e) { $error = 'Database error. Please try again later.'; } ?> Your Webinar Dashboard

Your Dashboard

Hello, !

You are registered for the following webinar:

format('l, F j, Y \a\t g:i A T'); ?>
Join Webinar
Could not find your registration details.