forked from deveshsinghal22/friendbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.php
117 lines (108 loc) · 4.69 KB
/
success.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
<link rel="stylesheet" type="text/css" href="css/indexPage.css">
<?php
session_start();
include('config.php');
if($_SESSION['user'] == null)
header('location: index.php');
if($_SESSION['status'] != 'y'){
echo "you are blocked";
?>
<a href="logout.php">exit and SignOut</a>
<?php
}
else {
?>
<html>
<head>
<script src="js/jquery-1.2.6.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/new.js"></script>
</head>
<body bgcolor="#5C6CD1">
<div class="nav">
<?php include('topMenuHeader.php');?>
</div>
<table align="center" border="1" cellspacing="0" bgcolor="#f0ffff">
<tr>
<td>
<center>
<h1>
<?php
echo "Hello " . $_SESSION['user'];
?>
<table align="center" border="1" cellpadding="10">
<?php
$result = mysql_query("SELECT * FROM user where email='$_SESSION[email]' ");
while ($row = mysql_fetch_array($result)) {
if($row['gender']== 'm')
$gender = "MALE";
else
$gender ="FEMALE";
$name = $row['name'];
echo "<tr>";
echo "<td> ID";
echo "</td>";
echo "<td>" . $row['id'] . "</td>";
$pic_name = $row['pic'];?>
<td rowspan="4"> <img src="images/<?php echo $pic_name ; ?> " width="100" height="100" alt="..:("/>
</td>
<?php
echo "</tr>";
echo "<tr>";
echo "<td> NAME";
echo "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> SURNAME";
echo "</td>";
echo "<td>" . $row['surname'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> GENDER";
echo "</td>";
echo "<td>" . $gender . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> PHONE";
echo "</td>";
echo "<td>" . $row['phone'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> DOB";
echo "</td>";
echo "<td>" . $row['DOB'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> REG";
echo "</td>";
echo "<td>" . $row['REG'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> ADDRESS";
echo "</td>";
echo "<td>" . $row['address'] . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td> EMAIL";
echo "</td>";
echo "<td>" . $row['email'] . "</td>";
echo "</tr>";
}
?>
</table>
</h1>
</center>
</body>
</html>
<?php } ?>
</td>
<td valign="top">
<div id="container" style="height: 460px; overflow: auto;" display : none>
</div>
</td>
<td valign="top">
<div id="container_new">
</div>
</td>
</tr>
</table>