diff --git a/admin.php b/admin.php index dacd03f..7fb122d 100644 --- a/admin.php +++ b/admin.php @@ -86,12 +86,13 @@ try { Referrer GCLID FBCLID + Actions - No attendees yet. + No attendees yet. @@ -112,6 +113,12 @@ try { + +
+ + +
+ diff --git a/delete_attendee.php b/delete_attendee.php new file mode 100644 index 0000000..27fb474 --- /dev/null +++ b/delete_attendee.php @@ -0,0 +1,26 @@ +prepare('DELETE FROM attendees WHERE id = :id'); + $stmt->bindParam(':id', $_POST['id'], PDO::PARAM_INT); + $stmt->execute(); + } catch (PDOException $e) { + // In a real app, you'd log this error. + // For this example, we'll just stop execution. + die("Database error: " . $e->getMessage()); + } +} + +// Redirect back to the admin page +header('Location: admin.php'); +exit; diff --git a/register.php b/register.php index 9a4e572..33eb394 100644 --- a/register.php +++ b/register.php @@ -171,6 +171,16 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { Back to Home + +
+

Already Registered

+

+

You can view webinar details on your dashboard.

+
+ Go to Dashboard + Back to Home +
+