Tegarmaji

Untitled

Jun 12th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // FKDXjPZm --> kTQKEtXr
  2. $gTotal = 0;
  3. while($menu=mysql_fetch_array($pesanan)) {
  4.     $tot=$menu[harga]*$menu[jumlah];
  5.     echo "<tr>";
  6.     echo "<td>$menu[nama_menu]</td>";
  7.     echo "<td><div align='center'>$menu[jumlah]</td></div>";
  8.     echo "<td><div align='center'>$menu[harga]</td></div>";
  9.     echo "<td><div align='center'>$tot</td></div></tr>";
  10.  
  11.     $gTotal = $gTotal + $tot;
  12. }
  13. echo "</table>";
  14.  
  15. echo "Total Pembelian Anda : Rp. $gTotal<br>";
  16. echo "Bayar : Rp. <input name='bayar' type='text' id='bayar' />";
  17. echo "<input name='proses' type='submit' id='proses' value='Click' />";
  18. echo "<input name='kembali' type='text' id='kembali' value='".$gTotal."' />";
  19. echo "</form>";
Advertisement
Add Comment
Please, Sign In to add comment