-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabeltamu.php
35 lines (33 loc) · 1.09 KB
/
tabeltamu.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
<?php
include 'plugins/config.php';
$no=1;
$select1 = "SELECT *, DATE_FORMAT(timestamp, '%d %b %Y %H:%i:%s') as tgl FROM tamu ORDER BY timestamp DESC";
$select_act1 = mysqli_query($con, $select1);
if($select_act1->num_rows>0){
while($row1=$select_act1->fetch_assoc()){
// if($row1['nama']=='0'){
// $jeniskel = 'Perempuan';
// }
// else {
// $jeniskel = 'Laki-laki';
// }
echo "
<tr>
<td>".$no."</td>
<td>".$row1['tgl']."</td>
<td>".$row1['nama']."</td>
<td>".$row1['instansi']."</td>
<td>".$row1['asal']."</td>
<td>".$row1['pesankesan']."</td>
<td><a onclick='konfrimdel(".$row1['id'].")' href='javascript:;'><span class='glyphicon glyphicon-remove'></span></a></td>
</tr>
";
$no++;
}
}
else{
echo "
<tr><td colspan='10'><center>Tidak ada data</center></td></tr>
";
}
//}