포인트 유효기간 설정 추가

This commit is contained in:
chicpro
2013-07-22 16:43:01 +09:00
parent 0527a9feb8
commit 18da974e7f
7 changed files with 122 additions and 18 deletions

View File

@ -20,9 +20,7 @@ for ($i=0; $i<$count; $i++)
$sql = " delete from {$g4['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
sql_query($sql);
$sql = " select sum(po_point) as sum_po_point from {$g4['point_table']} where mb_id = '{$_POST['mb_id'][$k]}' ";
$row = sql_fetch($sql);
$sum_point = $row['sum_po_point'];
$sum_point = get_point_sum($_POST['mb_id'][$k]);
$sql= " update {$g4['member_table']} set mb_point = '{$sum_point}' where mb_id = '{$_POST['mb_id'][$k]}' ";
sql_query($sql);