prepare(" INSERT INTO events (title, event_date, end_time, location, description, category, is_public, created_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?) "); $stmt->execute([$title, $event_date, $end_time, $location, $description, $category, $is_public, $_SESSION['member_id']]); $formSuccess = "Event added successfully."; } } // Handle Delete (members only) if (isset($_GET['delete']) && $loggedIn) { $delId = (int)$_GET['delete']; $pdo->prepare("DELETE FROM events WHERE id = ?")->execute([$delId]); header("Location: events.php"); exit(); } // Fetch events: members see all, public sees only is_public=1 if ($loggedIn) { $stmt = $pdo->query("SELECT * FROM events WHERE event_date >= DATE('now') ORDER BY event_date ASC"); } else { $stmt = $pdo->query("SELECT * FROM events WHERE is_public = 1 AND event_date >= DATE('now') ORDER BY event_date ASC"); } $events = $stmt->fetchAll(PDO::FETCH_ASSOC); // Split into featured (first) and side cards (next 2) $featuredEvent = !empty($events) ? $events[0] : null; $sideEvents = array_slice($events, 1, 2); $remainingEvents = array_slice($events, 3); function formatDay($dateStr) { return date('d', strtotime($dateStr)); } function formatMonth($dateStr) { return date('M', strtotime($dateStr)); } function formatTime($dateStr) { return date('g:i A', strtotime($dateStr)); } function formatFullDate($dateStr) { return date('F j, Y', strtotime($dateStr)); } ?> Events | Knights of Columbus Council 11908
KNIGHTS OF COLUMBUS
Logout Login
Council Heritage Banner
DeQueen Council Heritage

Brotherhood
& Service

Upcoming Events

No upcoming events scheduled.
Use the "Add Event" button to create one.
event
delete
schedule
location_on
Members Only

delete

location_on
schedule —
More events coming soon.

More Upcoming Events

Community Event
Our Mission in Action

Building a community through shared service.

Our events aren't just dates on a calendar. They are opportunities to strengthen the bonds of brotherhood, serve our local parish, and support those in need throughout DeQueen.