perbaikan

parent 5fd8b648
<?php <?php
require_once("koneksi.php"); require_once("koneksi.php");
include 'header.php'; include 'header.php';
global $sql;
$per_hal = 6; $per_hal = 6;
$jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_artikel"); $jumlah_record = mysqli_query($koneksi, "SELECT * FROM t_artikel");
...@@ -11,6 +10,7 @@ ...@@ -11,6 +10,7 @@
$page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1; $page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1;
$start = ($page - 1) * $per_hal; $start = ($page - 1) * $per_hal;
global $sql;
$sql = mysqli_query($koneksi, "SELECT * FROM t_artikel ORDER BY tanggal_dibuat DESC limit 8"); $sql = mysqli_query($koneksi, "SELECT * FROM t_artikel ORDER BY tanggal_dibuat DESC limit 8");
?> ?>
<!-- breadcrumbs --> <!-- breadcrumbs -->
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<a href="function.php?act=plus&amp;barang_id=<?php echo $key; ?>&amp;ref=singlebook.php"> <a href="function.php?act=plus&amp;barang_id=<?php echo $key; ?>&amp;ref=singlebook.php">
<img src="images/plus.png" /> <img src="images/plus.png" />
</a> </a>
<a href="function.php?act=del&amp;barang_id=<?php echo $key; ?>&amp;ref=singlebook.php"> <a onclick="if(confirm('Apakah Anda yakin ingin menghapus data ini ?')){ location.href='function.php?act=del&amp;barang_id=<?php echo $key; ?>&amp;ref=singlebook.php' }">
<img src="images/close_1.png" /> <img src="images/close_1.png" />
</a> </a>
</div> </div>
......
<?php <?php
require_once("koneksi.php"); require_once("koneksi.php");
include 'header.php'; include 'header.php';
global $sql;
$id= $_GET['kd']; $id= $_GET['kd'];
$sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE penerbit='$id' ORDER BY isbn"); $sql = mysqli_query($koneksi, "SELECT * FROM t_buku WHERE penerbit='$id' ORDER BY isbn");
?> ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment