-
Notifications
You must be signed in to change notification settings - Fork 0
/
student_view.php
51 lines (49 loc) · 1.33 KB
/
student_view.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
<?php
$title = "Index";
require_once 'Includes/header.php';
require_once 'Database/config.php';
if(isset($_GET['id']))
{
$id = $_GET['id'];
$response = $crud->get_student($id);
}
else
{
include 'Includes/error.php';
}
?>
<div class="card" style="width: 18rem;">
<div class="card-body">
<h3 class="card-title">Name:
<?php
echo $response['firstname'].' '.$response['lastname'];
?>
</h3>
<p class="card-text">
<?php
echo "Date Of Birth : ".$response['dob'];
?>
</p>
<p class="card-text">
<?php
echo "Speciality : ".$response['name'];
?>
</p>
<p class="card-text">
<?php
echo "Email ID: : ".$response['email'];
?>
</p>
<p class="card-text">
<?php
echo "Phone Number: ".$response['phone'];
?>
</p>
</div>
</div>
<br>
<a href="update.php?id=<?php echo $response['student_id'];?>" class="btn btn-warning">Edit</a>
<a href="remove.php?id=<?php echo $response['student_id'];?>" class="btn btn-danger" onclick="return confirm('Are you sure you want to delete?')">Del</a>
<?php
require_once 'Includes/footer.php';
?>