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
b9d03579
Commit
b9d03579
authored
May 24, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
penambahan checkout proses
parent
c88a9bc1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
selesai.php
selesai.php
+19
-0
No files found.
selesai.php
0 → 100644
View file @
b9d03579
<?php
include
'koneksi.php'
;
global
$total
;
$member_id
=
$_GET
[
'id_member'
];
$query
=
mysqli_query
(
$koneksi
,
"SELECT menu.harga, pemesanan.jumlah FROM menu
INNER JOIN (pemesanan INNER JOIN member ON member_id = id_member) ON menu_id= id_menu WHERE member_id= '
$id_member
'"
);
while
(
$row
=
mysqli_fetch_assoc
(
$query
)){
$jumlah
=
$row
[
'jumlah'
]
*
$row
[
'harga'
];
$total
=
$total
+=
$jumlah
;
}
$bukti
=
$_FILES
[
'bukti'
][
'name'
];
move_uploaded_file
(
$_FILES
[
'bukti'
][
'tmp_name'
],
'picture/'
.
$bukti
);
mysqli_query
(
$koneksi
,
"INSERT INTO pembayaran VALUES('', '
$member_id
', '
$total_harga
', '
$bukti
') "
);
header
(
'Location: bayar.php?id_member='
.
$member_id
);
?>
\ No newline at end of file
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