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
59ead1f0
Commit
59ead1f0
authored
7 years ago
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
3de0244b
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
index.php
index.php
+4
-6
No files found.
index.php
View file @
59ead1f0
...
...
@@ -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
=
mysql
i
_query
(
"SELECT * from menu"
);
$jum
=
mysql
i_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
())
{
?>
...
...
This diff is collapsed.
Click to expand it.
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