Keranjang Belanja
"; $sql = mysql_query("SELECT * FROM keranjang, produk WHERE id_session='$sid' AND keranjang.id_produk=produk.id_produk"); while($d=mysql_fetch_array($sql)){ $subtotal = $d[harga]* $d[jumlah]; $total = $total + $subtotal; echo""; } echo"
Nama Produk | Qty | Harga | Sub Total |
---|---|---|---|
$d[nama_produk] | $d[jumlah] | $d[harga] | $subtotal |
Tidak ada komentar:
Posting Komentar