<?php include '../forms/includes/connection.php'; if (isset ($_POST['Delete'])) { $id = $_POST['booking_request_id']; $sql = "DELETE from booking_requests where `booking_request_id` ='$id'"; $query = mysqli_query ($link,$sql); if ($query) { header('location:whatsBooked.php'); } else { echo "Error: Record was not deleted" .mysql_error(); } } else echo "Error" .mysql_error();
//What is $link variable? check your query in database whether it is working or not.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)