-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_produk.php
73 lines (56 loc) · 2.23 KB
/
data_produk.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
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
require_once('includes/conn.php');
include('includes/header.php');
include('includes/navbar.php');
include('includes/scripts.php');
include('includes/chartjs.php');
?>
<link href="css/style.css" rel="stylesheet" media="all">
<div class="badan">
<div class="container">
<div class="card">
<div class="container-fliud">
<div class="wrapper row">
<div class="preview col-md-6">
<?php
$id = $_GET["id"];
$brg= "SELECT * FROM produk WHERE idproduk = '$id' ";
$result = $con->query($brg);
if (!$result){
printf("Error: %s\n", mysqli_error($db));
exit();
}else{
while ($row = $result->fetch_object()){
$namaproduk = $row->namaproduk;
$deskripsi = $row->deskripsi;
$berat = $row->berat;
$kuantitas = $row->kuantitas;
$price = $row->price;
$gambar = $row->file_gambar;
}
}
?>
<div class="preview-pic tab-content">
<div class="tab-pane active" id="pic-1"><img src="/toko_baju_klout/admin/images/produk/<?php echo $gambar; ?>" /></div>
</div>
</div>
<div class="details col-md-6">
<h3 class="product-title"><?php echo $namaproduk; ?></h3>
<p class="product-description"><?php echo $deskripsi; ?></p>
<h4 class="price">Harga : <span>Rp. <?php echo $price; ?></span></h4>
<p class="vote">Berat : <?php echo $berat; ?> gram <br> Stok : <?php echo $kuantitas; ?>
</strong></p>
<div class="action">
<button class="add-to-cart btn btn-default" type="button">add to cart</button>
<button class="like btn btn-default" type="button"><span class="fa fa-heart"></span></button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
include('includes/footer.php');
?>
<script src="js/live-search.js"></script>