Commit f20b6503 by Roy Junedi Simamora

edit

parent b5ebecbb
<?php <?php
include 'koneksi.php'; include 'koneksi.php';
$id_member = $_GET['id']; $id = $_GET['id'];
$id_member = $_GET['id_member'];
mysqli_query($koneksi, "DELETE FROM pemesanan WHERE id_pemesanan = '$id'"); mysqli_query($koneksi, "DELETE FROM pemesanan WHERE id_pemesanan = '$id'");
header('Location: cart.php?id_member='. $id_member); header('Location: cart.php?id_member='. $id_member);
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<td> <?= $row['harga']?> </td> <td> <?= $row['harga']?> </td>
<td> <?= $row['jumlah']?> </td> <td> <?= $row['jumlah']?> </td>
<td> Rp. <?= number_format($subtotal)?>,- </td> <td> Rp. <?= number_format($subtotal)?>,- </td>
<td> <a href="batal.php?id=<?= $row['id_pemesanan'] ?>" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"></span> Batalkan </a> </td> <td> <a href="batal.php?id=<?= $row['id_pemesanan'] ?>&id_member=<?= $id_member?>" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"></span> Batalkan </a> </td>
</tr> </tr>
<?php <?php
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
?> ?>
</table> </table>
<div align="right"> <div align="right">
<font face="arial" size="5"> Total : <?= $total?></font> <font face="arial" size="5"> Total : Rp. <?= number_format($total)?>,- </font>
</div> </div>
<div align="center"> <div align="center">
......
...@@ -11,7 +11,7 @@ require 'koneksi.php'; ...@@ -11,7 +11,7 @@ require 'koneksi.php';
$id = $_GET['id']; $id = $_GET['id'];
$id_user = $_GET['id_member']; $id_user = $_GET['id_member'];
$query = mysqli_query($koneksi, "SELECT * FROM menu WHERE id_menu = '$id'"); $query = mysqli_query($koneksi, "SELECT * FROM menu WHERE id_menu = '$id'");
$q = mysqli_fetch_array($query); while($q = mysqli_fetch_array($query)){
?> ?>
<div class="col-md-6"> <div class="col-md-6">
<div align="center"> <div align="center">
...@@ -41,6 +41,9 @@ require 'koneksi.php'; ...@@ -41,6 +41,9 @@ require 'koneksi.php';
</tr> </tr>
</table> </table>
</div> </div>
<?php
}
?>
</div> </div>
<br/> <br/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment