<?php
include 'includes/auth.php';
include 'db.php';

$booking_id = intval($_GET['booking_id'] ?? 0);
if($booking_id > 0){
    $conn->query("DELETE FROM conference_bookings WHERE id=$booking_id");
    $conn->query("DELETE FROM conference_booking_resources WHERE booking_id=$booking_id");
    $conn->query("DELETE FROM conference_booking_accommodation WHERE booking_id=$booking_id");
}

header("Location: conference_bookings.php");
exit;