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
900fef63
Commit
900fef63
authored
May 24, 2017
by
Roy Junedi Simamora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in progress
parent
cd3452b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cart.php
cart.php
+3
-3
member_menu.php
member_menu.php
+1
-1
No files found.
cart.php
View file @
900fef63
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<?php
<?php
$id_member
=
$_GET
[
'id_member'
];
$id_member
=
$_GET
[
'id_member'
];
$query
=
mysqli_query
(
$koneksi
,
"SELECT menu.nama AS nama_menu, menu.harga, pemesanan.jumlah FROM menu
$query
=
mysqli_query
(
$koneksi
,
"SELECT menu.nama AS nama_menu, menu.harga, pemesanan.
id_pemesanan ,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
'"
);
INNER JOIN (pemesanan INNER JOIN member ON member_id = id_member) ON menu_id= id_menu WHERE member_id= '
$id_member
'"
);
$no
=
1
;
$no
=
1
;
...
@@ -31,8 +31,8 @@
...
@@ -31,8 +31,8 @@
<td>
<?php
echo
$row
[
'nama_menu'
]
?>
</td>
<td>
<?php
echo
$row
[
'nama_menu'
]
?>
</td>
<td>
<?=
$row
[
'harga'
]
?>
</td>
<td>
<?=
$row
[
'harga'
]
?>
</td>
<td>
<?=
$row
[
'jumlah'
]
?>
</td>
<td>
<?=
$row
[
'jumlah'
]
?>
</td>
<td>
<?=
$subtotal
?>
</td>
<td>
Rp.
<?=
number_format
(
$subtotal
)
?>
,-
</td>
<td>
<a
href=
"batal.php?id
_member=
<?=
$id_member
?>
"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batalkan
</a>
</td>
<td>
<a
href=
"batal.php?id
=
<?=
$row
[
'id_pemesanan'
]
?>
"
class=
"btn btn-danger"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
Batalkan
</a>
</td>
</tr>
</tr>
<?php
<?php
...
...
member_menu.php
View file @
900fef63
...
@@ -30,9 +30,9 @@ while ($b = mysqli_fetch_array($menu)) {
...
@@ -30,9 +30,9 @@ while ($b = mysqli_fetch_array($menu)) {
<h4
style=
"color: #3c3c3c;"
>
<?php
echo
$b
[
'nama'
];
?>
</h4>
<h4
style=
"color: #3c3c3c;"
>
<?php
echo
$b
[
'nama'
];
?>
</h4>
<h4>
<b>
Rp.
<?php
echo
number_format
(
$b
[
'harga'
])
?>
,-
</b>
</h4>
<h4>
<b>
Rp.
<?php
echo
number_format
(
$b
[
'harga'
])
?>
,-
</b>
</h4>
<br/>
</div>
</div>
</a>
</a>
<br/>
</div>
</div>
<?php
<?php
}
}
...
...
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