-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_student.php
62 lines (55 loc) · 1.24 KB
/
view_student.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
<?php
$title = 'View Details';
require "navbar.php";
?>
<?php
if (!isset($_GET['sname'])) {
header('location:student.php');
}else {
$sname = $_GET['sname'];
print_r($sname);
}
require "connection.php";
echo $sql = "select * from student where username= '$sname' ";
$result = $db->query($sql);
$student = $result->fetch_assoc();
?>
<div class="container">
<div class="card mt-5">
<div class="card-header">
<?php echo "<h2>STUDNET DETAILS</h2>" ?>
</div>
<div class="card-body">
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped ">
<tr>
<th>First Name</th>
<td><?php echo $student['first'] ?></td>
</tr>
<tr>
<th>Last Name</th>
<td><?php echo $student['last'] ?></td>
</tr>
<tr>
<th>Username</th>
<td><?php echo $student['username'] ?></td>
</tr>
<tr>
<th>Email</th>
<td><?php echo $student['email'] ?></td>
</tr>
<tr>
<th>Contact Number</th>
<td><?php echo $student['contact'] ?></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer"></div>
</div>
</div>