Commit 865fa461 by Roy Junedi Simamora

perubahan fungsi mysql menjadi mysqli pada menu

parent 7a774762
......@@ -8,8 +8,8 @@
<?php
$per_hal = 10;
$jumlah_record = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT COUNT(*) from menu");
$jum = mysql_result($jumlah_record, 0);
$jumlah_record = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from menu");
$jum = mysqli_num_rows($jumlah_record);
$halaman = ceil($jum / $per_hal);
$page = (isset($_GET['page'])) ? (int) $_GET['page'] : 1;
$start = ($page - 1) * $per_hal;
......
......@@ -8,9 +8,9 @@ include 'common/header.php';
<?php
$per_hal = 8;
$query = "SELECT COUNT(*) from menu";
$query = "SELECT * from menu";
$jumlah_record = mysqli_query($koneksi, $query);
$jum = mysqli_affected_rows($jumlah_record);
$jum = mysqli_num_rows($jumlah_record);
$halaman = ceil($jum / $per_hal);
$page = (isset($_GET['page'])) ? (int) $_GET['page'] : 1;
$start = ($page - 1) * $per_hal;
......
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