-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewprofile.php
130 lines (91 loc) · 3.3 KB
/
viewprofile.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
129
130
<!DOCTYPE HTML>
<html><?php
include ("header.php");
include("connect.php");
if(!isset($_SESSION['usr']))
{
header('location:login.php');
}
?>
<body style="overflow-x:hidden; background:url('images/2.jpg');">
<div class="main22" align="center">
<div class="img7" align="center"><img width="auto"
height="auto" src="<?PHP include "connect.php";
$uname=$_SESSION["usrid"];
$result=mysql_query("select *from userdetail where email='$uname'")or die ("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['name'];
}
?>"></img><?PHP?>
</div><form action="cp.php"style="margin-right:264px;margin-left:48px;position:absolute;" method="POST"/>
<input type="submit" value="change profile"/></form>
<form action="cpsw.php" method="POST"/>
<input type="submit" style="margin-left:10px;" value="change password"/></form>
<center><table height="100%" width="100%" cellspacing="5" >
<tr><td>
email address  </td><td bgcolor="white">
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT email FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['email']."</td></tr>";
}
?>
<h1><tr><td>
first name  </td><td bgcolor="white"><?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT firstname FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['firstname']."</td></tr>";
}
?></h1>
<h1><tr><td>last name  </td><td bgcolor="white">
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT lastname FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['lastname']."</td></tr>";
}
?></h1>
<h1><tr><td>date of birth  </td><td bgcolor="white">
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT dob FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['dob']."</td></tr>";
}
?></h1><h1><tr><td>
gender  </td><td bgcolor="white">
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT gender FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['gender']."</td></tr>";
}
?></h1><h1><tr><td>
contact_no  </td><td bgcolor="white">
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT contact_no FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['contact_no']."</td></tr></table>";
}?>
</h1>
</div>
</center>
<footer>
</br>
<?php $uname=$_SESSION["usrid"];
$result=mysql_query("SELECT email FROM userdetail WHERE email like '$uname'")or die("not Work");
while($row=mysql_fetch_array($result))
{
echo $row['email'];
}
?>
  ||   <a href="logout.php"><h8>LOGOUT</h8></a></br>
</br></br>
<p color="blue">Copyright © 2015 www.mailbox.com</p>
</footer>
</body>
</html>