<?php
// update
$id=$_POST['id'];
$product=$_POST['product'];
$price=$_POST['harga'];
$qty=$_POST['jumlah'];
$total=$_POST['total'];
foreach ($price as $key =>$val){
$sqlprice="update tabharga set harga='".$val."',jumlah='".$qty[$key]."',total='".$total[$key]."' where kode='$id'";
mysql_query($sqlprice);
}
?>
mohon bantuanya mas?