-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage_student.php
More file actions
75 lines (71 loc) · 2.42 KB
/
Copy pathmanage_student.php
File metadata and controls
75 lines (71 loc) · 2.42 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<title>Show Student Info</title>
</head>
<body>
<center><h2 style="-webkit-text-fill-color:hsl(234, 92%, 33%);font-family:sans-serif ;"><b>Student Information</b></h2></center>
<div class="container my-5">
<button class="btn btn-primary"><a href="student_registration.php" class="text-light"> Add Student
</a></button>
<table class="table table-striped table-hover my-5" border= "3">
<thead>
<tr>
<th scope="col">Serial Number</th>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Username</th>
<th scope="col">Gender</th>
<th scope="col">E-mail</th>
<th scope="col">Phone Number</th>
<th scope="col">Address</th>
<th scope="col">Password</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<?php
@include 'dbcon.php';
$sql=" SELECT *FROM student_registration";
$result=mysqli_query($conn,$sql);
if($result)
{
while($row=mysqli_fetch_assoc($result))
{
$s_id=$row['s_id'];
$fname=$row['fname'];
$lname=$row['lname'];
$uname=$row['uname'];
$gender=$row['gender'];
$email=$row['email'];
$phone=$row['phone'];
$address=$row['address'];
$password=$row['password'];
echo '<tr>
<th scope="row">'.$s_id.'</th>
<td>'. $fname.'</td>
<td>'. $lname.'</td>
<td>'. $uname.'</td>
<td>'. $gender.'</td>
<td>'. $email.'</td>
<td>'. $phone.'</td>
<td>'. $address.'</td>
<td>'. $password.'</td>
<td>
<button class="btn btn-primary"><a href="update_student.php?updates_id='.$s_id.' " class="text-light">Update</a></button>
<button class="btn btn-danger"><a href="delete_student.php?deletes_id='.$s_id.' " class="text-light">Delete</a></button>
</td>
</tr>';
}
}
?>
</tbody>
</table>
</div>
</body>
</html>