-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathview.php
35 lines (34 loc) · 971 Bytes
/
view.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
<?php
require 'redisDB.php';
$redis = new redisDB();
/* mendapatkan semua key */
$getdata = $redis->FindRedis('*');
?>
<html>
<head>
<title>Create/Update Redis</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
[<a href="edit.php">Tambah Baru</a>]
<table border="1">
<tr>
<td>Key</td>
<td>Action</td>
</tr>
<?php
if (!empty($getdata)) {
foreach ($getdata as $row) {
?>
<tr>
<td><?= $row ?></td>
<td><a href="edit.php?key=<?= $row ?>">edit</a> | <a href="delete.php?key=<?= $row ?>">delete</a></td>
</tr>
<?php
}
}
?>
</table>
</body>
</html>