-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
71 lines (61 loc) · 1.05 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
64
65
66
67
68
69
70
71
<?php
session_start();
include 'config.php';
if (!isset($_SESSION['username'])) {
header("location:login.php");
}
$user = $conn->query("select * from Users where UserName = '{$_SESSION['username']}';")->fetch_assoc();
?>
<!DOCTYPE html>
<html>
<?php
$title="Profile : Heka RX";
include 'head.php';
?>
<body>
<?php
$activeNavTabs = array("Profile");
include 'template.php';
?>
<div class="ad-column">
<?php
$adType = "desktop";
include 'ad.php';
?>
</div>
<div class="content-column">
<h2>Your Profile</h2>
<div>
<h3>Username</h3>
<?php echo $user["UserName"]; ?>
</div>
<div>
<h3>Name</h3>
<?php echo $user["FullName"]; ?>
</div>
<div>
<h3>Date of Birth</h3>
<?php echo $user["DoB"]; ?>
</div>
<div>
<h3>Sex</h3>
<?php echo $user["Sex"]; ?>
</div>
<div>
<h3>Phone Number</h3>
<?php echo $user["Phone"]; ?>
</div>
<div>
<h3>Email</h3>
<?php echo $user["Email"]; ?>
</div>
<a href="logout.php">Log Out</a>
</div>
<div class="ad-column">
<?php
$adType = "desktop";
include 'ad.php';
?>
</div>
</body>
</html>