-
Notifications
You must be signed in to change notification settings - Fork 0
/
tampildatadokter.php
72 lines (69 loc) · 2.95 KB
/
tampildatadokter.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/styles.css">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Data Dokter | BanMed</title>
</head>
<body>
<section id="section1">
<div class="container">
<div id="selector_1" class="row">
<div id="selector1" class="col-lg-12">
<div class="wrapper-flex-spacebetween">
<div class="wrapper-flex-center">
<div class="tulisan1-judul">
BanMed
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="section2-dokter">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="wrapper-flex-center-down" style="height: 500px">
<h1>Data Dokter</h1>
<br>
<table border="1" style="height: fit-content; width:75%; border: 2px solid black; font-family: montserrat;">
<tr style="width: 300px; text-align:center; color: #45bde5;">
<th>no</th>
<th>nama</th>
<th>alamat</th>
<th>spesialis</th>
<th>free</th>
</tr>
<?php
require 'koneksi.php';
$no = 1;
$data = mysqli_query($koneksi, "SELECT * FROM doctor");
while($d = mysqli_fetch_array($data)){
?>
<tr>
<td><?php echo $no++?></td>
<td><?php echo $d['nama']?></td>
<td><?php echo $d['alamat']?></td>
<td><?php echo $d['spesialis']?></td>
<td><?php echo $d['free']?></td>
</tr>
<?php
}
?>
<tr>
</tr>
</table>
</div>
</div>
</div>
</div>
</section>
</body>
</html>