You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sql = "update bookings set cancel_status=0 where ticketID='$tid'";
$result = $conn->query($sql);
if ($result) {
echo "ticket cancelled...!";
header("Refresh:0.5; URL=bookings.php");
}
else {
echo "<script type='text/javascript'> { window.location.replace('bookings.php');alert('Ticket was not cancelled due to some unknown reasons..sorry for inconvenience.');} </script>";