edit

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