-
Notifications
You must be signed in to change notification settings - Fork 4
/
profile.php
63 lines (44 loc) · 1.29 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
/**
* Created by PhpStorm.
* User: Nomaan
* Date: 02-Apr-19
* Time: 2:59 AM
*/
require_once('includes/db.php');
include('includes/session.php');
$sql = "SELECT username, name, email, address, phone FROM users WHERE username='$login_session'";
$result = mysqli_query($db_conn, $sql);
$user_data = mysqli_fetch_assoc($result);
mysqli_close($db_conn);
?>
<!DOCTYPE html>
<html>
<head>
<title>BAUST Online</title>
<link href="https://fonts.googleapis.com/css?family=Work+Sans:300">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
</head>
<body>
<?php $active_page = 'profile'; include('includes/header.php'); ?>
<br>
<br>
<br>
<br>
<br>
<div class="content">
<h1>Profile</h1>
<div id="profile">
<b id="welcome">Welcome : <i><?php echo $login_session; ?></i></b><br><br>
Name : <i><?php echo $user_data['name']; ?></i><br>
Email : <i><?php echo $user_data['email']; ?></i><br>
Address : <i><?php echo $user_data['address']; ?></i><br>
Phone : <i><?php echo $user_data['phone']; ?></i><br><br>
<b id="logout"><a href="logout.php">Log Out</a></b>
</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php include('includes/footer.php'); ?>
</body>
</html>
</html>