forked from mohitgoyal18/Hotel-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbook.php
More file actions
29 lines (29 loc) · 681 Bytes
/
book.php
File metadata and controls
29 lines (29 loc) · 681 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
<?php
include('connection.php');
function reg_in()
{
if(isset($_POST['submit']))
{
$name = $_POST['name'];
$email = $_POST['email'];
$mob = $_POST['mobile'];
$check_in = $_POST['in'];
$check_out = $_POST['out'];
$rm = $_POST['room'];
$room_type = $_POST['type'];
if(mysql_query("INSERT INTO `book` (`name`,`email`,`mobile_no`,`check_in`,`check_out`,`room`,`room_type`) VALUES ('$name','$email','$mob','$check_in','$check_out','$rm','$room_type')"))
{
header('Location: C:/wamp/www/project/payment.html');
}
else
echo mysql_error();
}
}
if(isset($_POST['submit']))
{
reg_in();
//echo ' succesfully inserted';
}
else
echo 'Not book';
?>