-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.php
59 lines (55 loc) · 1.44 KB
/
detail.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
<?php
include "koneksi.php";
if (isset($_GET["id"])) {
$isbn = $_GET["id"];
} else {
header("location:index.php");
};
$sql = "select * from vwBuku where isbn='$isbn'";
$query = mysqli_query($conn,$sql);
$data = mysqli_fetch_row($query);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css/detail.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Detail Buku</title>
</head>
<body>
<center><h1><?=$data[1]?></h1>
<table border="0">
<tr height="10px">
<td rowspan="6"><img src="img/bookcover/<?=$data[0]?>.jpg" alt="" width="411" height="600"></td>
<td>ISBN</td>
<td>:</td>
<td><?=$data[0]?></td>
</tr>
<tr height="10px">
<td>Pengarang</td>
<td>:</td>
<td><?=$data[2]?></td>
</tr>
<tr height="10px">
<td>Penerbit</td>
<td>:</td>
<td><?=$data[3]?></td>
</tr>
<tr height="10px">
<td>Tahun Terbit</td>
<td>:</td>
<td><?=$data[4]?></td>
</tr>
<tr height="10px">
<td>Stok</td>
<td>:</td>
<td><?=$data[5]?></td>
</tr>
<tr>
<td></td>
</tr>
</table>
</body>
</html>