![]() |
Alexey admin 6/26/2006 |
Hi, select ... *pricequantity as price_ext** from `order details`
if($_SESSION[$strTableName."_masterkey"]) { global $conn; $rs=db_query("select sum(price*quantity) from `order details` where orderid=".$_SESSION[$strTableName."_masterkey"],$conn); $data=db_fetch_numarray($rs); $total=$data[0]; db_exec("update orders set total=".$total." where id=".$_SESSION[$strTableName."_masterkey"],$conn); }
|
D
|
dilbertbert author 6/26/2006 |
Thanks for the reply, I will give this a try!! |