-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
76 lines (74 loc) · 1.55 KB
/
profile.php
File metadata and controls
76 lines (74 loc) · 1.55 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
65
66
67
68
69
70
71
72
73
74
75
<?php
include 'inc/header.php';
?>
<?php
$login = Session::get("userlogin");
if($login == false){
header("Location:login.php");
}
?>
<style>
.tblone{width: 550px;margin:0 auto; border:2px solid #ddd;}
.tblone tr td { text-align: justify; }
</style>
<div class="main">
<div class="content">
<div class="section group">
<?php
$id = Session::get("userID");
$getdata = $user->getUserData($id);
if($getdata){
while($result = $getdata->fetch_assoc()){
?>
<table class="tblone">
<tr>
<td colspan="3"><h2>Your Profile Details</h2></td>
</tr>
<tr>
<td>Name</td>
<td>:</td>
<td><?php echo $result['user_name']?></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><?php echo $result['user_email']?></td>
</tr>
<tr>
<td>Phone</td>
<td>:</td>
<td><?php echo $result['phone']?></td>
</tr>
<tr>
<td>Zipcode</td>
<td>:</td>
<td><?php echo $result['zip']?></td>
</tr>
<tr>
<td>Address</td>
<td>:</td>
<td><?php echo $result['billing_address']?></td>
</tr>
<tr>
<td>State</td>
<td>:</td>
<td><?php echo $result['state']?></td>
</tr>
<tr>
<td>Country</td>
<td>:</td>
<td><?php echo $result['country']?></td>
</tr>
<tr>
<td></td>
<td></td>
<td><a href="editprofile.php">Update Details</a></td>
</tr>
</table>
<?php } }?>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>