diff --git a/assets/pasted-20251017-092558-6823fffc.png b/assets/pasted-20251017-092558-6823fffc.png new file mode 100644 index 0000000..b917847 Binary files /dev/null and b/assets/pasted-20251017-092558-6823fffc.png differ diff --git a/assets/pasted-20251017-093140-48a8b5ba.png b/assets/pasted-20251017-093140-48a8b5ba.png new file mode 100644 index 0000000..106a87e Binary files /dev/null and b/assets/pasted-20251017-093140-48a8b5ba.png differ diff --git a/assets/pasted-20251017-093539-e74373a7.png b/assets/pasted-20251017-093539-e74373a7.png new file mode 100644 index 0000000..c4dea17 Binary files /dev/null and b/assets/pasted-20251017-093539-e74373a7.png differ diff --git a/db/migrations/006_add_form_fields.sql b/db/migrations/006_add_form_fields.sql new file mode 100644 index 0000000..5bfd597 --- /dev/null +++ b/db/migrations/006_add_form_fields.sql @@ -0,0 +1,4 @@ +ALTER TABLE `attendees` +CHANGE `name` `first_name` VARCHAR(255), +ADD `last_name` VARCHAR(255) NULL AFTER `first_name`, +ADD `how_did_you_hear` VARCHAR(255) NULL; diff --git a/describe_table.php b/describe_table.php new file mode 100644 index 0000000..477ef4a --- /dev/null +++ b/describe_table.php @@ -0,0 +1,8 @@ +query('DESCRIBE attendees'); + print_r($stmt->fetchAll(PDO::FETCH_ASSOC)); +} catch (PDOException $e) { + echo 'Error: ' . $e->getMessage(); +} diff --git a/index.php b/index.php index 7ae8f1b..b27ddd1 100644 --- a/index.php +++ b/index.php @@ -1,114 +1,203 @@ -prepare("SELECT * FROM webinars WHERE scheduled_at > NOW() ORDER BY scheduled_at ASC LIMIT 1"); - $stmt->execute(); - $webinar = $stmt->fetch(); -} catch (PDOException $e) { - // Silently fail for now -} - -$webinar_id = $webinar ? $webinar['id'] : 1; // Fallback to 1 if no webinar is found -$webinar_title = $webinar ? $webinar['title'] : 'Professional Vibe-Coding Webinar'; -$webinar_date_str = $webinar ? (new DateTime($webinar['scheduled_at']))->format('l, F j \\ • \\ At g.i A T') : 'Monday, November 3 • At 6.00 PM PST'; - -?> - <?= htmlspecialchars($webinar_title) ?> + Webinar Registration + -
-

Professional Vibe-Coding Webinar by Flatlogic

-

Professional Vibe‑Coding: the fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.

-
-

Schedule

- -
- -
- Register Now → -