From ac0f115fb69ae00a213362f54a76b825549740f7 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 17 Oct 2025 11:07:59 +0000 Subject: [PATCH] 1234567 --- admin.php | 9 ++++++++- delete_attendee.php | 26 ++++++++++++++++++++++++++ register.php | 10 ++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 delete_attendee.php 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 +
+