-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
88 lines (75 loc) · 2.92 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php include 'includes/header.php' ?>
<div id="container">
<div id="left-nav">
<div class="clip1">
<a href="updatephoto.php" title="Change Profile Picture"><img src="<?php echo $row['profile_picture'] ?>"></a>
</div>
<div class="user-details">
<h3><?php echo $firstname ?> <?php echo $lastname ?></h3>
<!-- <h2><?php //echo $username ?></h2> -->
</div>
</div>
<div id="right-nav">
<h1 style="margin-left:60px; margin-top:30px;">Personal Info</h1>
<hr style="width:85%"/>
<br />
<?php
include('includes/database.php');
$result=mysqli_query($conn, "SELECT * FROM user where user_id='$id' ");
while($test = mysqli_fetch_array($result))
{
$id = $test['user_id'];
echo " <div class='info-user'>";
echo " <div>";
echo " <label>Firstname</label> <b>".$test['firstname']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Lastname</label> <b>".$test['lastname']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Username</label> <b>".$test['username']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Credits</label> <b>".$test['credits']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Birthday</label> <b>".$test['birthday']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Gender</label> <b>".$test['gender']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>Number</label> <b>".$test['number']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo " <div>";
echo " <label>E-mail</label> <b>".$test['email']."</b>";
echo "</div> ";
echo "<hr /> ";
echo "<br /> ";
echo "</div> ";
echo "<br /> ";
echo " <div class='edit-info'>";
echo " <a href ='edit_profile.php?user_id=$id'><button>Edit Profile</button></a>";
echo "</div> ";
echo "<br /> ";
echo "<br /> ";
}
?>
</div>
</div>
</body>
</html>