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
cf966f18
Commit
cf966f18
authored
May 23, 2017
by
Fredrick Mangampu Theodorus Pardosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
fce8f776
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
bayar.php
bayar.php
+1
-1
bayar_process.php
bayar_process.php
+1
-1
update_menu_process.php
update_menu_process.php
+2
-2
No files found.
bayar.php
View file @
cf966f18
...
@@ -4,7 +4,7 @@ include_once 'functions/fungsi.php';
...
@@ -4,7 +4,7 @@ include_once 'functions/fungsi.php';
include_once
'connection/koneksi.php'
;
include_once
'connection/koneksi.php'
;
$query
=
"SELECT menu.harga as harga, pesanan.jumlah as jumlah FROM pesanan INNER JOIN menu ON pesanan.id_menu = menu.id"
;
$query
=
"SELECT menu.harga as harga, pesanan.jumlah as jumlah FROM pesanan INNER JOIN menu ON pesanan.id_menu = menu.id"
;
$result_set
=
$
database
->
query
(
$query
);
$result_set
=
$
conn
->
query
(
$query
);
?>
?>
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
...
...
bayar_process.php
View file @
cf966f18
...
@@ -13,7 +13,7 @@ $harga = $_GET['harga'];
...
@@ -13,7 +13,7 @@ $harga = $_GET['harga'];
$id
=
get_session
(
'id'
);
$id
=
get_session
(
'id'
);
$query
=
'INSERT INTO pembayaran( `id_user`, `total`) VALUES(?, ?)'
;
$query
=
'INSERT INTO pembayaran( `id_user`, `total`) VALUES(?, ?)'
;
$statement
=
$
database
->
prepare
(
$query
);
$statement
=
$
conn
->
prepare
(
$query
);
$statement
->
bind_param
(
'is'
,
$id
,
$harga
);
$statement
->
bind_param
(
'is'
,
$id
,
$harga
);
$statement
->
execute
();
$statement
->
execute
();
redirect
(
'index.php#pembayaran'
);
redirect
(
'index.php#pembayaran'
);
...
...
update_menu_process.php
View file @
cf966f18
...
@@ -28,10 +28,10 @@ $gambar = basename($_FILES['uploaded_file']['name']);
...
@@ -28,10 +28,10 @@ $gambar = basename($_FILES['uploaded_file']['name']);
$sql
=
"UPDATE menu SET nama='
$nama
', harga='
$harga
', deskripsi='
$deskripsi
', id_karyawan=
$id_karyawan
, gambar='
$gambar
' WHERE id=
$id
"
;
$sql
=
"UPDATE menu SET nama='
$nama
', harga='
$harga
', deskripsi='
$deskripsi
', id_karyawan=
$id_karyawan
, gambar='
$gambar
' WHERE id=
$id
"
;
if
(
$
database
->
query
(
$sql
)
===
TRUE
)
{
if
(
$
conn
->
query
(
$sql
)
===
TRUE
)
{
echo
"Record updated successfully"
;
echo
"Record updated successfully"
;
}
else
{
}
else
{
echo
"Error updating record: "
.
$
database
->
error
;
echo
"Error updating record: "
.
$
conn
->
error
;
}
}
...
...
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