-
Notifications
You must be signed in to change notification settings - Fork 0
/
datasiswa.php
43 lines (41 loc) · 2.35 KB
/
datasiswa.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
<?php include 'header.php';
include 'koneksi.php';
?>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Data Siswa</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>NISN</th>
<th>Nama</th>
<th>Angkatan</th>
<th>Kelas</th>
<th>Jurusan</th>
<th>Alamat</th>
</tr>
</thead>
<?php
$query = "SELECT siswa.*,angkatan.*,jurusan.*,kelas.* FROM siswa,angkatan,jurusan,kelas WHERE siswa.id_angkatan = angkatan.id_angkatan AND siswa.id_jurusan = jurusan.id_jurusan AND siswa.id_kelas = kelas.id_kelas ORDER BY id_siswa";
$exec = mysqli_query($conn,$query);
while($res = mysqli_fetch_assoc($exec)):
?>
<tbody>
<tr>
<td><?= $res['nisn'] ?></td>
<td><?= $res['nama'] ?></td>
<td><?= $res['nama_angkatan'] ?></td>
<td><?= $res['nama_kelas'] ?></td>
<td><?= $res['nama_jurusan'] ?></td>
<td><?= $res['alamat'] ?></td>
</tr>
<?php endwhile; ?>
</tbody>
</table>
</div>
</div>
</div>
<?php include 'footer.php'; ?>