forked from bhavanshu-1112/DBMS-Project
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdelete.php
More file actions
30 lines (29 loc) · 775 Bytes
/
Copy pathdelete.php
File metadata and controls
30 lines (29 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once "config.php";
if(isset($_POST["submit"])){
if(!empty($_POST["room"])){
foreach($_POST["room"] as $room){
$sql="DELETE FROM reservations WHERE room_no=?;";
$stmt=mysqli_prepare($conn,$sql);
if($stmt){
mysqli_stmt_bind_param($stmt,"i",$param_room);
$param_room=$room;
if(mysqli_stmt_execute($stmt)){
header("location: customer_table.php");
}
else{
echo "something went wrong....";
}
}
echo "andar gadbad";
}
}
else{
echo "gadbag gadbad";
}
}
else{
echo "gadbad";
}
mysqli_close($conn);
?>