Commit 900fef63 by Roy Junedi Simamora

in progress

parent cd3452b6
...@@ -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
......
...@@ -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
} }
......
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