<?php
    include("conn.php");//add connection to the php page

    if(isset($_POST['deletedata']))
    {
        $bid = $_POST['delete_id'];

        $sql = "DELETE FROM volleyball_court_booking WHERE Booking_ID = '$bid'";
        $result = mysqli_query($conn, $sql);

        if($result)
        {
            echo '<script> alert("Data Deleted!");</script>';
            header("location:manager_volleyball_court_booking_management.php");
        }
        else
        {
            echo '<script> alert("Data Not Deleted!");</script>';
        }
    }
?>