-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
68 lines (43 loc) · 1.64 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
<!DOCTYPE html>
<html>
<head>
<title>
profile
</title>
<head>
<body>
<?php
include 'connect.php';
include 'nvgbar.php';
$id=$_SESSION['id'];
$query = mysql_query("SELECT * FROM users WHERE id='$id'");
while($row = mysql_fetch_assoc($query))
{
$name=$row['name'];
$email=$row['email'];
$username=$row['username'];
$contact=$row['contact'];
$gender=$row['gender'];
}
?>
<div style="background-image:url('images/profile.jpg'); border-radius:6px; width:100%; height:600px;">
<div style="color: rgb(255, 255, 255)">
<img src="images/usericon.png" style="border-radius: 50%;width:200px;margin-left: 100px;margin-top: 120px">
<p><span style="font-size: 30px;font-family: verdana"></span>
<span style="font-size: 25px;font-weight: bold;margin-left: 110px;margin-top: 120px;font-weight: bolder;font-family: verdana"><?php echo $name; ?>
</span><br>
</p>
<p style="float:right;margin-right: 475px;margin-top: -230px">
<span style="font-size: 30px;font-family: verdana">Username:</span>
<span style="font-size: 25px; margin-left:25px;"> <?php echo $username; ?> </span><br>
<span style="font-size: 30px;font-family: verdana">Contact No.:</span>
<span style="font-size: 25px; "><?php echo $contact; ?></span><br>
<span style="font-size: 30px;font-family: verdana">Email:</span>
<span style="font-size: 25px; margin-left:95px;"><?php echo $email; ?></span><br>
<span style="font-size: 30px;font-family: verdana">Gender:</span>
<span style="font-size: 25px; margin-left:71px;"><?php echo $gender; ?></span><br></p>
</div>
</div>
<?php include 'footer.php'; ?>
</body>
</html>