-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile.php
78 lines (76 loc) · 1.97 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
74
75
76
77
78
<?php include "inc/header.php"; ?>
<?php
$login=Session::get('cuslogin');
if($login==false){
header("Location:login.php");
}
?>
<div class="container">
<div class="row">
<div class="col-md-3">
</div>
<div class="col-md-6">
<table class="table table-striped table-bordered">
<?php
$cid=Session::get('cusid');
$getuserpro=$cmr->getuserpro($cid);
if($getuserpro){
while ($result=$getuserpro->fetch_assoc()) {
?>
<tr>
<td colspan="3" align="center"><h2>Your Profile</h2></td>
</tr>
<tr>
<td width="20%">Name</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['name']; ?></td>
</tr>
<tr>
<td width="20%">City/Village</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['city']; ?></td>
</tr>
<tr>
<td width="20%">Zilla</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['zilla']; ?></td>
</tr>
<tr>
<td width="20%">Thana</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['thana']; ?></td>
</tr>
<tr>
<td width="20%">Post Office</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['post']; ?></td>
</tr>
<tr>
<td width="20%">Address</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['address']; ?></td>
</tr>
<tr>
<td width="20%">Email</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['email']; ?></td>
</tr>
<tr>
<td width="20%">Mobile</td>
<td width="5%">:</td>
<td width="75%"><?php echo $result['mobile']; ?></td>
</tr>
<tr>
<td colspan="3"><a class="upd" href="updatepro.php">Update Details</a></td>
</tr>
<?php
}
}
?>
</table>
</div>
<div class="col-md-3">
</div>
</div>
</div>
<?php include "inc/footer.php"; ?>