-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.php
60 lines (54 loc) · 1.48 KB
/
show.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
<?php
require('database.php');
?>
<html>
<head>
</head>
<body>
<style>
.box {border: black solid;
height:500px;
width:600px;}
</style>
<table>
<tr>
<td width="50%"></td>
<td class="box" align="center">
<div align="center">
<h1>Result</h1>
<table border="1" style="border-collapse:collapse;" >
<tr border="1">
<td>No</td>
<td>ID</td>
<td>Name</td>
<td>Description</td>
<td>Date(Created)</td>
<td>Date(Update)</td>
<td>Edit</td>
<td>Delete</td>
</tr>
<?php
$count=1;
$select = "select * from `user` order by 'id' asc";
$query = mysqli_query($connect,$select);
while($row = mysqli_fetch_assoc($query)){
?>
<tr>
<td><?php echo $count; ?></td>
<td><?php echo uniqid($row['id']) ?></td>
<td><?php echo $row['nama'] ?></td>
<td><?php echo $row['des'] ?></td>
<td><?php echo $row['date1'] ?></td>
<td><?php echo $row['date2'] ?></td>
<td><a href="edit.php?id=<?php echo $row['id'] ?>">Edit</a></td>
<td><a href="delete.php?id=<?php echo $row['id'] ?>">Delete</a></td>
</tr>
<?php $count++; } ?>
</table>
<div align="center"><br /><br /><a href="insert.php"><input name="view" type="button" value="Back" /></a></div>
</div>
</td>
</tr>
</table>
</body>
</html>