-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
54 lines (52 loc) · 1.25 KB
/
Copy pathdashboard.php
File metadata and controls
54 lines (52 loc) · 1.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="dashboard.css">
</head>
<body>
<h1>Dashboard page</h1>
<?php
session_start();
$sesid=$_SESSION['user'];
$conn=mysqli_connect("localhost","root","","hoteltbl");
$sel="select * from signuptbl where email='$sesid'";
$r=mysqli_query($conn,$sel);
$k=mysqli_fetch_array($r,MYSQLI_BOTH);
?>
<center> <table border="1">
<tr>
<th>Name</th>
<td><?php echo $k['1']?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $k['2']?></td>
</tr>
<tr>
<th>Password</th>
<td><?php echo $k['3']?></td>
</tr>
<!-- <tr>
<th>Mobile</th>
<td><?php echo $k['4']?></td>
</tr>
<tr>
<th>City</th>
<td><?php echo $k['5']?></td>
</tr>
<tr>
<th>Picture</th>
<td><img src="../picture/<?php echo $k['6']?>" heght="150px" width="150px"/></td>
</tr>
<tr> -->
<th>Action</th>
<td><a href="changepassword.php">Change password</a>
! <a href="logout.php">Logout</a>
</td>
</tr>
</table></center>
</body>
</html>