답변 3개
채택된 답변
+20 포인트
Copy
$todate = date('Y-m-d');
$sql = " select count(*) as cnt from {$g5['point_table']}
where mb_id = '$member['mb_id']'
and po_rel_table = 'day_point'
and po_rel_id = '$todate'
and po_rel_action = '차감' ";
$row = sql_fetch($sql);
if (!$row['cnt']) {
$day_point = -50;
insert_point($member['mb_id'], $day_point, $todate.' 차감', 'day_point', $todate, '차감');
}
답변을 작성하려면 로그인이 필요합니다.