0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
[
Home
]
File: update_product.php
<? session_start(); require('includes/config.php'); $temptable=session_id(); $temp_id=$_GET['temp_id']; $prod_quantity=$_GET['prod_quantity']; $rate=$_GET['rate']; $weight=$_GET['weight']; $total_weight=$weight*$prod_quantity; $total=$prod_quantity*$rate; if($prod_quantity>0) { $q_update_cart="update `".$temptable."` set quantity='".$prod_quantity."', price='".$total."', total_product_weight='".$total_weight."' where `temp_id`='".$temp_id."'"; } else if($prod_quantity==0) { $q_update_cart="delete from `".$temptable."` where `temp_id`='".$temp_id."'"; } $r_update_cart=mysql_query($q_update_cart); ?>