-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcetak.php
More file actions
47 lines (38 loc) · 749 Bytes
/
cetak.php
File metadata and controls
47 lines (38 loc) · 749 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>DATA SISWA</title>
</head>
<body>
<center>
<h2>DATA SISWA XI RPL 1</h2>
<?php
include 'coba.php';
?>
<table border="1">
<tr>
<th>ID</th>
<th>Username</th>
<th>Password</th>
<th>Level</th>
<th>Fullname</th>
</tr>
<?php
include('koneksi.php');
$sql ="SELECT * FROM data_siswa";
$peserta=mysqli_query($koneksi,$sql);
while($baris_data=mysqli_fetch_array($peserta,MYSQLI_ASSOC)){
echo'
</tr>
<td>'.$baris_data['ID'].'</td>
<td>'.$baris_data['Username'].'</td>
<td>'.$baris_data['Password'].'</td>
<td>'.$baris_data['Level'].'</td>
<td>'.$baris_data['Fullname'].'</td>
</tr>';
}
?>
</table>
</center>
</body>
</html>