Commit f20b6503 by Roy Junedi Simamora

edit

parent b5ebecbb
<?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'");
header('Location: cart.php?id_member='. $id_member);
......
......@@ -32,7 +32,7 @@
<td> <?= $row['harga']?> </td>
<td> <?= $row['jumlah']?> </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>
<?php
......@@ -43,7 +43,7 @@
?>
</table>
<div align="right">
<font face="arial" size="5"> Total : <?= $total?></font>
<font face="arial" size="5"> Total : Rp. <?= number_format($total)?>,- </font>
</div>
<div align="center">
......
......@@ -11,7 +11,7 @@ require 'koneksi.php';
$id = $_GET['id'];
$id_user = $_GET['id_member'];
$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 align="center">
......@@ -41,6 +41,9 @@ require 'koneksi.php';
</tr>
</table>
</div>
<?php
}
?>
</div>
<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