alexa-tracking

Minta Koreksinya Masgan SF Programmer Please

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/53a6543462088122438b45b0/minta-koreksinya-masgan-sf-programmer-please
Minta Koreksinya Masgan SF Programmer Please
Pagi Master2,
ane di kasi tugas kaya gini mas gan sm pak guru
disuru buat rancang form tampil dan keluar sebuah keranjang belajar sederhana kaya gini gan

Spoiler for Form Tampilan:


Spoiler for Form Keluar (Edit):


nah ini script tampil ane gan

Quote:<p align="center"><strong>Keranjang Belanja</strong></p>
<table width="503" height="170" border="0" align="center">
<tr bgcolor="#999999">
<td width="90">Produk</td>
<td width="65">Harga(Rp)</td>
<td width="46">Jumlah</td>
<td width="221">Total(Rp)</td>
</tr>
<?
include"koneksi.php";
$sql=mysql_query("select * from keranjang");
$jmldata=mysql_num_rows($sql);
while($tampil=mysql_fetch_array($sql))
{
$harga=$tampil['harga'];
$jml=$tampil['jumlah'];
$total=$jml*$harga;
$produk=$buku+$jml;
?>
<tr>
<td>Kode Barang :<? echo $tampil['0']; ?></td>
<td><? echo $tampil['3']; ?> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Nama Barang :<? echo $tampil['1']; ?></td>
<td> </td>
<td><? echo $tampil['4']; ?> </td>
<td><? echo $tampil['4'] * $tampil['5']; ?> </td>
</tr>
<tr>
<td>Spesifikasi :<? echo $tampil['2']; ?></td>
<td> </td>
<td> </td>
<td> </td>
</tr>


nah troublenya, pas ane coba di localhost kok ga muncul ya gan ? apa ada script yg kurang atau gimana gan

mohon bantuanya ya agan-agan sekalian
terima kasih sebelumnya emoticon-I Love Kaskus (S)