-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
68 lines (63 loc) · 1.09 KB
/
profile.php
File metadata and controls
68 lines (63 loc) · 1.09 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
<?php
session_start();
include "dbconfigure.php";
if(verifyuser())
{
$u = $_SESSION['semail'];
$query = "select * from siteuser where emailid='$u'";
$rs = my_select($query);
if($row=mysqli_fetch_array($rs))
{
$username = $row[0];
$city = $row[2];
$address = $row[3];
$contact = $row[5];
}
}
else
{
header("location:login.php");
}
?>
<html>
<head>
<?php include "header.php"; ?>
<style>
td{color : brown}
</style>
</head>
<body>
<?php include "nav2.php";
echo "<br> Welcome <b style = 'color : green ; text-transform:capitalize'>$username</b>";
?>
<div class="container" >
<h1 class="text-center" style = "font-family : Monotype Corsiva ; color : red">User Profile</h1>
<br>
<br>
<table class="table">
<tr>
<th>UserName</th>
<td><?php echo $username; ?></td>
</tr>
<tr>
<th>City</th>
<td><?php echo $city; ?></td>
</tr>
<tr>
<th>Address</th>
<td><?php echo $address; ?></td>
</tr>
<tr>
<th>EmailID</th>
<td><?php echo $u; ?></td>
</tr>
<tr>
<th>Contact</th>
<td><?php echo $contact; ?></td>
</tr>
</table>
<br>
<a href="editprofile.php" class="btn btn-success">Edit Profile</a>
</div>
</body>
</html>