-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
73 lines (68 loc) · 3.03 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
72
73
<?php
include 'includes/navigation_bar.php';
if(!isset($_SESSION['USER_LOGIN'])){
header('Location:login?type=msg&page=Cart');
}
$user_id= $_SESSION['USER_ID'];
$sql =mysqli_query($con,"SELECT * FROM users WHERE id = '$user_id'");
$res = mysqli_fetch_assoc($sql);
$profile = mysqli_fetch_assoc(mysqli_query($con,"SELECT * FROM user_profile WHERE user_id='$user_id'"));
?>
<!-- profile body -->
<div class="container profile">
<div class="row heading">
<div class="col-xl-12">
<h2>Your Profile</h2>
<p>Update Now</p>
</div>
<div class="update_profile">
<a href="<?php echo WEBSITE_PATH; ?>manage_user_profile?type=update"><button class="btn">Update Now</> <i class="fa fa-pencil-square-o" aria-hidden="true"></i></button></a>
<a href="<?php echo WEBSITE_PATH; ?>manage_user_profile?type=add"><button class="btn">Insert Now <i class="fa fa-pencil-square-o" aria-hidden="true"></i></button></a>
</div>
</div>
<!-- Personal Info -->
<div class="row personal_info">
<div class="col-xl-6 personal_info_row">
<p>Personal Information</p>
<div class="prosonal_filed">
<ul>
<li>Name : <span><?php echo $res['name'];?></span></li>
<li>Email Id : <span><?php echo $res['email'];?></span></li>
<li>Mobile No : <span><?php echo $profile['mobile_no']?></span></li>
</ul>
</div>
</div>
</div>
<!--X- Personal Info -X-->
<!-- Address Info -->
<div class="row personal_info">
<div class="col-xl-6 personal_info_row">
<p>Address</p>
<div class="prosonal_filed">
<ul>
<li>House / Building No : <span><?php echo $profile['house_no']?></span></li>
<li>City / Vilage : <span><?php echo $profile['city']?></span></li>
<li>Pin Code : <span><?php echo $profile['pin_code']?></span></li>
<li>Type Of Address : <span><?php echo $profile['address_type']?></span></li>
</ul>
</div>
</div>
</div>
<!--X- Address Info -X-->
<!-- Account Info -->
<div class="row personal_info">
<div class="col-xl-6 personal_info_row">
<p>Account Details</p>
<div class="prosonal_filed">
<ul>
<li>User Name : <span><?php echo $res['username'];?></span></li>
</ul>
</div>
</div>
</div>
<!--X- Account Info -X-->
</div>
<!--X- profile body -X-->
<?php
include 'includes/footer.php';
?>