-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathlist of doctors.php
81 lines (75 loc) · 3.18 KB
/
list of doctors.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
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>RRV Hospitals</title>
<meta name="keywords" content="RRV Hospitals">
<meta name="description" content="Developed By Rishi Raj G">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(document).ready(function () {
$("#nav-placeholder").load("nav.html");
});
</script>
</head>
<body>
<img src="assets/images/logo.png" class="logo">
<div id="nav-placeholder"></div>
<h1 style="color:black;font-size: 45px;text-align:center;margin:30px;">Our Doctors Here!</h1>
<div class="container">
<div class="table-responsive">
<table class="table table-hover striped">
<thead class="thead-dark">
<tr>
<th>Doctor Id</th>
<th>Name</th>
<th>Address</th>
<th>Phone Number</th>
<th>Qualification</th>
<th>Department</th>
</tr>
</thead>
<tbody style="color:white">
<?php
require "conn.php";
$sql="select * from doctors";
$result=$conn->query($sql);
if ($result->num_rows>0) {
while ($row=$result->fetch_assoc()) {
echo"
<tr>
<td>
".$row["docid"]."
</td>
<td>
".$row["name"]."
</td>
<td>
".$row["address"]."
</td>
<td>
".$row["phno"]."
</td>
<td>
".$row["qualification"]."
</td>
<td>
".$row["department"]."
</td>
</tr>";
}
echo"</table>";
} else {
echo"0 result";
}
?>
</tbody>
</table>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>