Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "admin/koneksi.php";
- include "admin/fungsi_rupiah.php";
- echo"<center> Nama Member : <h2><font color=blue>$_SESSION[nama_member]</font></h2><br/><br/><hr/><hr/><br/><br/></center>";
- $trans_cek = mysql_query("SELECT * FROM transaksi,transaksi_detail,produk WHERE kode_member = '$_SESSION[kode_member]' AND status = '' AND transaksi.no_transaksi = transaksi_detail.no_transaksi AND transaksi_detail.id_produk = produk.id_produk") or die (mysql_error());
- $i=0;
- while($trans = mysql_fetch_array($trans_cek))
- {
- $subtotal_a = $trans['harga'] * $trans['jumlah_beli'];
- $subtotal = format_rupiah($subtotal_a);
- $harga = format_rupiah($trans['harga']);
- echo (++$i==1?"
- <pre>
- No Transaksi : {$trans['no_transaksi']} <br/>
- Waktu Belanja : {$trans['waktu']} <br/>
- <center>
- <table align=center border=1>
- ":"");
- echo "
- <tr bgcolor=black>
- <th><font color=white>Nama Produk</font></th>
- <th><font color=white>Harga Satuan</font></th>
- <th><font color=white>Jumlah Beli</font></th>
- <th><font color=white>Subtotal</font></th>
- </tr>
- <tr>
- <td width=200 align=center>$trans[nama_produk]</td>
- <td width=200 align=center>Rp. $harga</td>
- <td width=200 align=center>$trans[jumlah_beli]</td>
- <td width=200 align=center>Rp. $subtotal</td>
- </tr>";
- }
- echo "</table>
- </center>
- </pre><hr/><hr/><br/>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement