-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-profile.php
More file actions
76 lines (65 loc) · 1.83 KB
/
admin-profile.php
File metadata and controls
76 lines (65 loc) · 1.83 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
69
70
71
72
73
74
75
76
<?php
session_start();
require 'db_con.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Admin | StudentMate</title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./css/profile.css">
</head>
<body>
<div class="content">
<header>
<div class='nav'>
<ul id='ul-nav'>
<li class='home'><a href='admin_ui.php'>StudentMate</a></li>
<li><form method='POST' action='admin_ui.php'><input type='submit' name='out' class='btn' id='outbtn' value='LOG OUT'></form></li>
</ul>
</div>
</header>
<div class="midcontent">
<center><p id="backhome"><a href="admin_ui.php">BACK TO HOME</a></p></center>
<div class='wrapper'>
<img src='./images/admin2.png'><br><br>
<?php
$sql = "SELECT * FROM customer WHERE username='$_SESSION[username]'";
$res = mysqli_query($conn,$sql);
if($res){
while($row = mysqli_fetch_row($res)){
echo "<div class='bio'>
<table border=0>
<tr>
<td class='field'>Username : </td>
<td class='field'>$row[0]</td>
</tr>
<tr>
<td class='field'>Full Name : </td>
<td class='field'>$row[1]</td>
</tr>
<tr>
<td class='field'>Email : </td>
<td class='field'>$row[2]</td>
</tr>
<tr>
<td class='field'>Mobile No : </td>
<td class='field'>$row[3]</td>
</tr>
<tr>
<td class='field'>NIC: </td>
<td class='field'>$row[4]</td>
</tr>
</table>
</div>";
}
}
else{
die('No data in the table');
}
?>
</div>
<?php include('./import/footer.php'); ?>
</div>
</body>
</html>