edit

parent 3de0244b
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
session_start(); session_start();
include_once 'functions/fungsi.php'; include_once 'functions/fungsi.php';
include_once 'connection/koneksi.php'; include_once 'connection/koneksi.php';
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
...@@ -93,8 +91,8 @@ include_once 'connection/koneksi.php'; ...@@ -93,8 +91,8 @@ include_once 'connection/koneksi.php';
<?php <?php
$per_hal = 8; $per_hal = 8;
$jumlah_record = mysql_query("SELECT * from menu"); $jumlah_record = mysqli_query("SELECT * from menu");
$jum = mysql_num_rows($jumlah_record); $jum = mysqli_num_rows($conn,$jumlah_record);
$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;
...@@ -114,7 +112,7 @@ $start = ($page - 1) * $per_hal; ...@@ -114,7 +112,7 @@ $start = ($page - 1) * $per_hal;
<div class="col-lg-12"> <div class="col-lg-12">
<?php <?php
$query = "SELECT * FROM menu limit $start, $per_hal"; $query = mysqli_query($conn,"SELECT * FROM menu limit $start, $per_hal");
$result_set = $database->query($query); $result_set = $database->query($query);
while ($row = $result_set->fetch_assoc()) { while ($row = $result_set->fetch_assoc()) {
...@@ -220,7 +218,7 @@ $start = ($page - 1) * $per_hal; ...@@ -220,7 +218,7 @@ $start = ($page - 1) * $per_hal;
<div class="col-lg-12"> <div class="col-lg-12">
<?php <?php
$query = "SELECT * FROM Komentar"; $query = "SELECT * FROM Komentar";
$result_set = $database->query($query); $result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) { while ($row = $result_set->fetch_assoc()) {
?> ?>
......
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