-
Notifications
You must be signed in to change notification settings - Fork 0
/
doctor_timings.php
48 lines (41 loc) · 1.15 KB
/
doctor_timings.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
<?php
include("header.php");
include("dbconnection.php");
?>
<div class="container-fluid">
<div class="block-header">
<h2 class="text-center">Doctor Timings</h2>
</div>
<div class="card">
<section class="container">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable" style="background-color:#808080;">
<thead>
<tr>
<th width="15%" height="36"><div align="center">Doctor Name</div></th>
<th width="20%"><div align="center">Start Time</div></th>
<th width="20%"><div align="center">End Time</div></th>
</tr>
</thead>
<tbody>
<?php
$sql ="SELECT * FROM doctor INNER JOIN doctor_timings on doctor.doctorid=doctor_timings.doctorid";
$qsql = mysqli_query($con,$sql);
while($rs = mysqli_fetch_array($qsql))
{
echo "<tr>
<td>$rs[doctorname]<br>
<td>
$rs[start_time]<br>
</td>
<td>
$rs[end_time]</td>";
}
?>
</tbody>
</table>
</section>
</div>
</div>
<?php
include("footer.php");
?>