1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php include_once("./_common.php");
if($mode=='del'){ // 우측장바구니 삭제시 $sql = "delete from shop_cart where idx = '{$codes[0]}' and ccode = '{$id_ccode}' "; mysql_query($sql,$connect_j3); } else { // 우측장바구니 수량 변경시 $sql = "select * from shop_cart where idx = '{$codes[0]}' and ccode = '{$id_ccode}'"; $ct_info = sql_fetch($sql,$connect_j3); $ct_tot_amt = $ct_info['ct_price']*$qty[0]; $sql = "update shop_cart set ct_qty = '{$qty[0]}', ct_tot_amt = '{$ct_tot_amt}' where idx = '{$codes[0]}' and ccode = '{$id_ccode}' "; mysql_query($sql,$connect_j3); }
?>
|