하루에 포인트 발송 횟수 제한 코드좀 바주세요
본문
po_expire_date= '".G5_SERVER_TIME."' 이거 추가전에 아이디랑 ppoint가 같을시에는 잘되는데
오늘 날짜 기준으로 할려고 하니 안되네요 ㅠㅠ
$row3 = sql_query(" select count(po_rel_table) as total1 from {$g5['point_table']}
where po_rel_table = 'ppoint' and po_rel_action='".$member['mb_id']."'
and po_expire_date= '".G5_SERVER_TIME."' ");
$rs3 = sql_fetch_array($row3);
if ($rs3['total1'] >= 1)
alert("1개 이상 발송이 금지됨니다.");
답변 2
$row3 = sql_fetch(" select count(po_rel_table) as total1 from {$g5['point_table']}
where po_rel_table = 'ppoint' and po_rel_action='".$member['mb_id']."'
and po_expire_date= '".G5_SERVER_TIME."' ");
if ($row['total1'] >= 1)
G5_TIME_YMD
답변을 작성하시기 전에 로그인 해주세요.