-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPediatrics.php
97 lines (77 loc) · 3.53 KB
/
Pediatrics.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
89
90
91
92
93
94
95
96
97
<?php
session_start();
if(!isset($_SESSION['loggedIn']) || $_SESSION['loggedIn'] = false)
{
header("Location: http://localhost/dbms_project/login.php ");
exit;
}
if(isset($_GET['id'])){
$con = mysqli_connect('localhost','root','','patient_database');
if(!$con)
{
die("connection failed due to " . mysqli_connect_error());
}
else
{
//echo "connection to database is successful";
}
$id = $_GET['id'];
$_SESSION['doctor_id'] = $id;
header("Location: http://localhost/dbms_project/Dermatology.php ");
$con->close();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<title>Pediatrics</title>
<style>
.container{
margin-top: 100px;
}
</style>
</head>
<body>
<?php require('navbar.php')?>;
<div class="container">
<h2 class="text-center mb-5">Our Pediatrics Doctors</h2>
<div class="row">
<div class="col">
<div class="card" style="width: 18rem;">
<img src="https://img.freepik.com/free-vector/doctor-character-background_1270-84.jpg?w=2000" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Dr. Arefin</a></h5>
<p class="card-text">FCPS Pediatrics,<br>Dhaka Medical College</p>
<a href="http://localhost/dbms_project/Otolaryngology.php?id=arefin123" id="arefin123" class="btn btn-primary">Make Appointment</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<img src="https://img.freepik.com/free-vector/doctor-character-background_1270-84.jpg?w=2000" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Dr. Sabbir</a></h5>
<p class="card-text">FCPS Pediatrics,<br>Rangpur Medical College</p>
<a href="http://localhost/dbms_project/Otolaryngology.php?id=arefin222" id="arefin222" class="btn btn-primary">Make Appointment</a>
</div>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<img src="https://img.freepik.com/free-vector/doctor-character-background_1270-84.jpg?w=2000" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Dr. Galib</a></h5>
<p class="card-text">FCPS Pediatrics,<br>Khagrachori Medical College</p>
<a href="http://localhost/dbms_project/Otolaryngology.php?id=galib123" id="galib123" class="btn btn-primary">Make Appointment</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>