-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemp.php
More file actions
59 lines (50 loc) · 1.81 KB
/
temp.php
File metadata and controls
59 lines (50 loc) · 1.81 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
56
57
58
59
</a></div>
<html>
<title>bookings</title>
<?php
session_start();
if ( isset( $_SESSION['user_id'] ) ) {
$idh=$_SESSION['user_id'];
} else {echo 'session expired.';
header("Refresh:0; URL=expiredsess.php");
die();
}?>
<head>
<base target="_self" />
<link rel="stylesheet" href="1.css" />
<link rel="stylesheet" href="2.css" />
<link rel="stylesheet" href="3.css" />
<link rel="stylesheet" href="6.css" />
</head>
<body style="background-image:url(10.jpg)">
<div class="topnav" style="margin-bottom: 10px;">
<a class="active" href="home.php">Home</a>
<a href="">
<?php echo $_SESSION['idname']; ?></a>
<a href="">Bookings</a>
<div><a href="logout.php">LOGOUT</a></div>
</div>
<p style="background-color:rgba(170,0,0,0.2);text-align:center;font-size:35px;color:silver;width:1500px;font-family:pristina;">your bookings</p>
<?php
include 'connection.php';
$sql = "SELECT * FROM bookings WHERE userid='".$_SESSION['user_id']."'";
$result = $conn->query($sql);
$numtks = $result->num_rows;
if($numtks==0){?>
<div>No Bookings Yet !!</div>
<?php} else {?>
<div class="frame">
<div class="card">
<div style="background-image: url(movieIMG/puzzle-et00074430-20-04-2018-04-22-01.jpg)" class="image">
<div class="overlay">
<div class="btn2"><a href="https://www.imdb.com/title/tt6933454/?ref_=nv_sr_1" class="bk_inf">
About
</a></div>
</div>
</div>
</div>
<div class="tk_details">Movie : puzzle<br><br>Theatre : Carnival Cinemas<br><br>Date : 12-11-2018<br><br>Show Time : xx:yy pm<br><br>seats : 2<br><br>Paid : abc</div>
</div>
<?php }?>
</body>
</html>