-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
63 lines (51 loc) · 1.2 KB
/
profile.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
<?php
if (!session_id()) {
# code...
session_start();
}
include 'db.php';
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/customerPanel.css">
<link href="js/bootstrap.min.css" rel='stylesheet' type='text/css' />
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad" >
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">
<?php
$userId=$_SESSION['user'];
$res=$conn->query("select * from user where userId='$userId';");
$row=$res->fetch_object();
echo "".$row->userName;
?>
</h3>
</div>
<div class="panel-body">
<div class=" col-md-9 col-lg-9 ">
<table class="table table-user-information">
<tbody>
<tr>
<td>Name:</td>
<td><?php
echo "".$row->userName;
?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>