Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PA1-1617-D3TI05
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fredrick Mangampu Theodorus Pardosi
PA1-1617-D3TI05
Commits
3de0244b
Commit
3de0244b
authored
May 22, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
c4b28d77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.php
index.php
+6
-4
No files found.
index.php
View file @
3de0244b
...
...
@@ -2,6 +2,8 @@
session_start
();
include_once
'functions/fungsi.php'
;
include_once
'connection/koneksi.php'
;
?>
<!DOCTYPE html>
<html>
...
...
@@ -91,8 +93,8 @@ include_once 'connection/koneksi.php';
<?php
$per_hal
=
8
;
$jumlah_record
=
mysql
i_query
(
$conn
,
"SELECT * from menu"
);
$jum
=
mysql
i_num_rows
(
$conn
,
$jumlah_record
);
$jumlah_record
=
mysql
_query
(
"SELECT * from menu"
);
$jum
=
mysql
_num_rows
(
$jumlah_record
);
$halaman
=
ceil
(
$jum
/
$per_hal
);
$page
=
(
isset
(
$_GET
[
'page'
]))
?
(
int
)
$_GET
[
'page'
]
:
1
;
$start
=
(
$page
-
1
)
*
$per_hal
;
...
...
@@ -112,7 +114,7 @@ $start = ($page - 1) * $per_hal;
<div
class=
"col-lg-12"
>
<?php
$query
=
mysqli_query
(
$conn
,
"SELECT * FROM menu limit
$start
,
$per_hal
"
)
;
$query
=
"SELECT * FROM menu limit
$start
,
$per_hal
"
;
$result_set
=
$database
->
query
(
$query
);
while
(
$row
=
$result_set
->
fetch_assoc
())
{
...
...
@@ -218,7 +220,7 @@ $start = ($page - 1) * $per_hal;
<div
class=
"col-lg-12"
>
<?php
$query
=
"SELECT * FROM Komentar"
;
$result_set
=
$
conn
->
query
(
$query
);
$result_set
=
$
database
->
query
(
$query
);
while
(
$row
=
$result_set
->
fetch_assoc
())
{
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment