-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert.php
More file actions
46 lines (24 loc) · 901 Bytes
/
insert.php
File metadata and controls
46 lines (24 loc) · 901 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<html>
<body>
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
$sql="INSERT INTO reservation (customer_id, tablenumber, bookingdate, expecteddate) VALUES ('".$_POST['customer_id']."',' ".$_POST['tablenumber']."',' ".$_POST['bookingdate']."',' ".$_POST['expecteddate']."')";
mysqli_query($db, $sql);
move_uploaded_file($temp, $store);
$success = '<div class="alert alert-success alert-dismissible fade show">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
New Table Booking Added Successfully.
</div>';
echo "Table booking done";
mysql_close($db)
?>
<button onclick="goBack()">Go Back</button>
<script>
function goBack() {
window.history.back();
}
</script>
</body>
</html>