-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbooking-in.php
More file actions
55 lines (47 loc) · 1.51 KB
/
booking-in.php
File metadata and controls
55 lines (47 loc) · 1.51 KB
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
<?php
session_start();
if (isset($_SESSION["user_id_booking"])) {
$mysqli = new mysqli('localhost', 'itech174', 'Fe7@bwZWgAqV', 'itech174');
$sql = "SELECT * FROM bookings
WHERE id = {$_SESSION['user_id_booking']}";
$result = $mysqli->query($sql);
$user = $result->fetch_assoc();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="loginstyle.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Tinos:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
background-color: black;
color: white;
text-align: center;
}
.link {
text-decoration: none;
color: rgb(255, 140, 0);
}
.links{
text-decoration: none;
color: yellow;
}
</style>
</head>
<body>
<?php if (isset($_SESSION["user_id_booking"])): ?>
<h1>Now you can check your reservation.<br>
<a class="links" href="reservation.php">Your reservation</a></h1>
</h1>
<?php else: ?>
<h1><a class="links" href="bookatable.html">Book A Table</a><br>
<a class="links" href="delete-booking.html">Delete Your Booking</a></h1>
<?php endif; ?>
</body>
</html>