Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
RestoranPondokEdo
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
Mei Romauli Sagala
RestoranPondokEdo
Commits
865fa461
Commit
865fa461
authored
May 22, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perubahan fungsi mysql menjadi mysqli pada menu
parent
7a774762
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
admin_menu.php
admin_menu.php
+2
-2
member_menu.php
member_menu.php
+2
-2
No files found.
admin_menu.php
View file @
865fa461
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<?php
<?php
$per_hal
=
10
;
$per_hal
=
10
;
$jumlah_record
=
mysqli_query
(
$GLOBALS
[
"___mysqli_ston"
],
"SELECT
COUNT(*)
from menu"
);
$jumlah_record
=
mysqli_query
(
$GLOBALS
[
"___mysqli_ston"
],
"SELECT
*
from menu"
);
$jum
=
mysql
_result
(
$jumlah_record
,
0
);
$jum
=
mysql
i_num_rows
(
$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
;
...
...
member_menu.php
View file @
865fa461
...
@@ -8,9 +8,9 @@ include 'common/header.php';
...
@@ -8,9 +8,9 @@ include 'common/header.php';
<?php
<?php
$per_hal
=
8
;
$per_hal
=
8
;
$query
=
"SELECT
COUNT(*)
from menu"
;
$query
=
"SELECT
*
from menu"
;
$jumlah_record
=
mysqli_query
(
$koneksi
,
$query
);
$jumlah_record
=
mysqli_query
(
$koneksi
,
$query
);
$jum
=
mysqli_
affected
_rows
(
$jumlah_record
);
$jum
=
mysqli_
num
_rows
(
$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
;
...
...
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