In foreach loop, we cant get two parametes so use this solutions.
In pHP:-
$order_id=$_POST['order_id'];
$result=explode(",",$result);
$model=$_POST['model'];
$model=explode(",",$model);
for ($indx = 0 ; $indx < count($result); $indx ++) {
$update_qry="update oc_order_product set shipping_quantity='$result[$indx]' where model='$model[$indx]' and order_id='$order_id'";
mysql_query($update_qry);
}
No comments:
Post a Comment