mengedit

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