mengedit

parent 7cd4eede
...@@ -9,7 +9,7 @@ global $conn; ...@@ -9,7 +9,7 @@ global $conn;
function execQ($strQ){ function execQ($strQ){
global $conn; global $conn;
$res = mysqli_query($strQ, $conn); $res = mysqli_query($conn, $strQ);
return $res; return $res;
} }
......
...@@ -93,8 +93,8 @@ include_once 'connection/koneksi.php'; ...@@ -93,8 +93,8 @@ include_once 'connection/koneksi.php';
<?php <?php
$per_hal = 10; $per_hal = 10;
$jumlah_record = mysql_query("SELECT COUNT(*) from menu"); $jumlah_record = mysqli_query($conn, "SELECT COUNT(*) from menu");
$jum = mysql_result($jumlah_record, 0); $jum = mysqli_result($jumlah_record, 0);
$halaman = ceil($jum / $per_hal); $halaman = ceil($jum / $per_hal);
$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;
......
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