-
Notifications
You must be signed in to change notification settings - Fork 0
/
jadwalpelajaran.php
69 lines (53 loc) · 1.31 KB
/
jadwalpelajaran.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
<?php
$conn = mysqli_connect("localhost","id10009706_root","bangsat123","id10009706_rpl");
$jadwal = query("SELECT * FROM jadwalpelajaran");
function query($query) {
global $conn;
$result = mysqli_query($conn,$query);
$rows = [];
while ($row = mysqli_fetch_assoc($result) ) {
$rows[] = $row;
}
return $rows;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jadwal Pelajaran RPL X 1</title>
<link rel="stylesheet" type="text/css" href="css/waw.css">
</head>
<body>
<a href="index.html" class="link">Home</a>
<a href="" class="link">About</a>
<a href="siswa.php" class="link">Daftar Siswa</a>
<a href="jadwalpelajaran.php" class="link">Jadwal Pelajaran</a>
<a href="jadwalpiket.php" class="link">jadwal piket</a>
<br><br>
<div class="e">
<h1>Jadwal Pelajaran XI RPL 1</h1>
</div>
<br>
<form actio="" method="post">
</form>
<table border="1" cellpadding="10" class="d">
<tr>
<th>Senin</th>
<th>Selasa</th>
<th>Rabu</th>
<th>Kamis</th>
<th>Jum'at</th>
</tr>
<?php foreach ($jadwal as $rew ) : ?>
<tr>
<td><?php echo $rew ["Senin"] ?></td>
<td><?php echo $rew ["Selasa"]?></td>
<td><?php echo $rew ["Rabu"]?></td>
<td><?php echo $rew ["Kamis"]?></td>
<td><?php echo $rew ["Jumat"]?></td>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>