-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathuser-profile.php
128 lines (86 loc) · 2.66 KB
/
user-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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<head>
<title>User Dashboard | Healing Infirmary</title>
<link rel="icon" href="assets/img/mlogo.png">
</head>
<?php
session_start();
require_once('sql.php');
$_SESSION['email'];
$eamil=$_SESSION['email'];
$result = mysqli_query($conn,"SELECT * FROM users Where email='$eamil'");
if (mysqli_num_rows($result) > 0) {
$i=0;
$row = mysqli_fetch_array($result);
}
else{
echo "No result found";
}
include_once('include/header.php');
include_once('include/user-sidebar.php');
?>
<main class="app-content">
<div class="app-title">
<div>
<h1><i class="fa fa-bed"></i> User Profile</h1>
</div>
<ul class="app-breadcrumb breadcrumb">
<a href="docUpload.php">Add Document</a> /
<a href="logout.php">Logout</a>
</ul>
</div>
<div class="row">
<div class="col-md-5 m-auto">
<div class="tile">
<h3 class="tile-title">User Profile</h3>
<div class="tile-body">
<form action="action/update-profile.php" method="post" class="form-horizontal" enctype="multipart/form-data">
<input type="hidden" name="id" value="<?php echo $id ?>">
<div class="form-group row">
<label class="control-label col-md-3" for="name">Name <span class="text-danger">*</span></label>
<div class="col-md-9">
<?php echo $row["name"]; ?>
</div>
</div>
<hr>
<div class="form-group row">
<label class="control-label col-md-3" for="name">User id <span class="text-danger">*</span></label>
<div class="col-md-9">
<?php echo $row["id"]; ?>
</div>
</div>
<hr>
<div class="form-group row">
<label class="control-label col-md-3" for="email">Email <span class="text-danger">*</span></label>
<div class="col-md-9">
<?php echo $row["email"]; ?>
</div>
</div>
<hr>
<div class="form-group row">
<label class="control-label col-md-3" for="mobile">Mobile <span class="text-danger">*</span></label>
<div class="col-md-9">
<?php echo $row["mobile"]; ?>
</div>
</div>
<hr>
<div class="form-group row">
<label class="control-label col-md-3" for="image"> Image <span class="text-danger">*</span></label>
<div class="col-md-9">
<img src="<?php echo $row["image"]; ?>" alt="User Image" style="height: 70px; width: 70px;">
</div>
</div>
</div>
</form>
</div>
</div>
<?php
include_once('include/footer.php');
// include_once('include/Hfooter.php');
?>
<!-- ================================================================================ -->
</div>
</div>
</div>
</div>
</body>
</html>