-
Notifications
You must be signed in to change notification settings - Fork 1
/
tampil_buku.php
60 lines (50 loc) · 1.67 KB
/
tampil_buku.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
if(isset($_POST["id"]))
{ include 'koneksi/koneksi.php';
$output = '';
$query = "SELECT * FROM buku WHERE id = '".$_POST["id"]."'";
$datanya = mysqli_query($conn, $query);
$output .= '
<div class="table-responsive">
<table class="table table-bordered" style="color:black;">';
while($data = mysqli_fetch_array($datanya))
{
$output .= '
<tr>
<td align="center" width="70%" heigth="50%" >
<a href="proses/sampul/'.$data["foto"].' "><img src="proses/sampul/'.$data['foto'].'" width="240" heigth="320"></a>
</td>
</tr>
<tr>
<td align="center"> '.$data['judul'].'</td>
</tr>
<tr>
<td align="center"> '."Oleh : ".$data['pengarang'].' </td>
</tr>
<tr>
<td align="center"> '.$data['tahun'].' </td>
</tr>
<tr>
<td align="center"> '."Genre : ".$data['genre'].' </td>
</tr>
<tr>
<td align="center"> '."Buku Fisik : ".$data['fisik'].' </td>
</tr>
<tr>
<td align="center"> '."Stok : ".$data['stok'].' </td>
</tr>
<tr>
<td align="center"> '."Lokasi : ".$data['lokasi'].' </td>
</tr>
<tr>
<td>'."Deskripsi :".' </td>
</tr>
<tr>
<td>'.$data['deskripsi'].' </td>
</tr>
';
}
$output .= "</table></div>";
echo $output;
}
?>