-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-lema.php
More file actions
executable file
·56 lines (51 loc) · 1.54 KB
/
Copy pathdata-lema.php
File metadata and controls
executable file
·56 lines (51 loc) · 1.54 KB
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
<?php include("config.php"); ?>
<!DOCTYPE html>
<html>
<head>
<title>Korpus Sunda Kuna</title>
</head>
<body>
<center><h1>Korpus Sunda Kuna</h1></center>
<br>
<h2>Data Lema yang Telah Terdaftar</h2>
<nav>
<a href="tampilan-daftar.php"> [+] Tambah Baru</a>
</nav>
<br>
<table border="1">
<thead>
<tr>
<th>No</th>
<th>Lema</th>
<th>Sublema</th>
<th>Kelas Kata</th>
<th>Etimologi</th>
<th>Definisi</th>
<th>Konteks 1</th>
</tr>
</thead>
<tbody>
<?php
$sql = "SELECT * FROM tabel_lema";
$query = mysqli_query($db, $sql);
while($glosarium = mysqli_fetch_array($query))
{
echo "<tr>";
echo "<td>".$glosarium['id']."</td>";
echo "<td>".$glosarium['lema']."</td>";
echo "<td>".$glosarium['sublema']."</td>";
echo "<td>".$glosarium['kelas_kata']."</td>";
echo "<td>".$glosarium['etimologi']."</td>";
echo "<td>".$glosarium['definisi']."</td>";
echo "<td>".$glosarium['konteks_1']."</td>";
echo "<td>";
echo "<a href='edit-lema.php?id=".$glosarium."'> Edit</a> |";
echo "<a href='hapus.php?id=".$glosarium."'>Hapus</a>";
echo "</td>";
echo "</tr>";
}
?> </tbody>
</table>
<p>Total: <?php echo mysqli_num_rows($query) ?></p>
</body>
</html>