/
Booked.php
120 lines (101 loc) · 4.17 KB
/
Booked.php
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Booked</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="dist/pickmeup.min.js"></script>
<script type="text/javascript" src="dist/handleCounter.js"></script>
<link rel="stylesheet" type="text/css" href="css/pickmeup.css">
<link rel="stylesheet" type="text/css" href="css/handle-counter.min.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<script type="text/javascript" src="dist/jquery.scrollUp.js"></script>
<script type="text/javascript" src="dist/demo.js"></script>
<style type="text/css">
#booking{
text-align: center;
color: green;
padding-top: 30px;
padding-bottom: 30px;
font-size: 30px;
background: #353535;
position: relative;
}
</style>
</head>
<body>
<header class="tm-header">
<!-- <img class="tm-logo" src="images/logo.png" alt="Trickshot"> -->
<video class="tm-logo" width="400" height="300" autoplay loop>
<source src="images/logo.mp4" type="video/mp4">
</video>
<nav class="tm-nav">
<div>
<ul>
<li class="tm-list"><a href="index.html">Home</a></li>
<li class="tm-list"><a href="explore.html">Explore</a></li>
<!-- <li class="tm-list"><a href="rooms.html">Rooms</a></li> -->
<li class="tm-list"><a href="bb.html">Booking</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</nav>
</header>
<section class="tm-main">
<p>Booking</p>
</section>
<section id="booking">
<h1>
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "trickshotdb";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
if (!$conn) {
die("Connection failed: " .mysqli_connect_error());
}
//post data
if(isset($_POST['submit']))
{
$name=$_POST['name'];
$people=$_POST['people'];
$hours=$_POST['hours'];
$date=$_POST['date'];
$phone=$_POST['phone'];
$email=$_POST['email'];
//insertion of data
$sql = "INSERT INTO BOOKING (name,people,hours,date,phone,email) VALUES ('$name','$people','$hours','$date','$phone','$email')";
if($conn->query($sql) === TRUE) { echo "Booking successful !!!"; }
else { echo "Error: " . $sql . "<br>" . $conn->error; }
}
$conn->close();
?></h1>
<p>You will soon get a call/email from us for about your booking confirmation.</p>
</section>
<footer class="tm-footer">
<div class="tm-us">
<p class="bold">About Us</p>
<p>      At TrickShot, product quality and customer satisfaction are the most important virtues to us. Each TrickShot location is carefully vetted, analyzed and monitored to ensure optimum player experience. From the parking facility to the service provided by the staff, we ensure our customers leave, only to come back. We use European artificial turf, handcrafted by the finest European Turf manufactures in the world and laid out by the most experienced turf installers in the country. All our turf comes from FIFA Recommended vendors only. </p>
</div>
<div class="tm-address">
<p class="bold">Address</p>
<p>Surve Estates</p>
<p>Tonge lane</p>
<p>Thane(W)</p>
<p>Phone : (+91)123456789</p>
<p>Email : trickshot@info.com</p>
</div>
<br/>
<div class="tm-media">
<a href="http://www.facebook.com" target="_blank"> <img src="images/fb.png"></a>
<a href="http://www.linkedin.com" target="_blank"> <img src="images/linkedin.png"> </a>
<a href="http://www.twitter.com" target="_blank"> <img src="images/twittr.png"> </a>
<a href="http://www.instagram.com" target="_blank"> <img src="images/insta.png"> </a>
</div>
<!-- <a href="#top"> <img class="tm-up" src="images/up.png"> </a>-->
</footer>
</body>
</html>