-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard2.php
More file actions
64 lines (63 loc) · 1.37 KB
/
Copy pathdashboard2.php
File metadata and controls
64 lines (63 loc) · 1.37 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
60
61
62
63
64
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Dashboard page</h1>
<?php
session_start();
$sesid=$_SESSION['user'];
$conn=mysqli_connect("localhost","root","","hoteltbl");
$sel="select * from bookroomtbl ";
$r=mysqli_query($conn,$sel);
$k=mysqli_fetch_array($r,MYSQLI_BOTH);
?>
<table border="1">
<tr>
<th>Name</th>
<td><?php echo $k['1']?></td>
</tr>
<tr>
<th>Last Name</th>
<td><?php echo $k['2']?></td>
</tr>
<tr>
<th>Room Type</th>
<td><?php echo $k['3']?></td>
</tr>
<tr>
<th>Arrival Date</th>
<td><?php echo $k['4']?></td>
</tr>
<tr>
<th>Time</th>
<td><?php echo $k['5']?></td>
</tr>
<tr>
<th>Departure Date</th>
<td><?php echo $k['6']?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $k['7']?></td>
</tr>
<tr>
<th>Number of Guests</th>
<td><?php echo $k['8']?></td>
</tr>
<tr>
<th>Request</th>
<td><?php echo $k['9']?></td>
</tr>
<tr>
<th>Action</th>
<td><a href="changepassword.php">Change password</a>
! <a href="logout.php">Logout</a>
</td>
</tr>
</table>
</body>
</html>