채택완료

하루에 포인트 발송 횟수 제한 코드좀 바주세요

po_expire_date= '".G5_SERVER_TIME."' 이거 추가전에 아이디랑 ppoint가 같을시에는 잘되는데

오늘 날짜 기준으로 할려고 하니 안되네요 ㅠㅠ

 

Copy
$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개 / 댓글 1개

채택된 답변
+20 포인트
Copy
$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)

답변에 대한 댓글 1개

날짜 기준이 2021-04-07 이렇게 들어 가는데
G5_SERVER_TIME 쓰는게 맞나요 ?

답변을 작성하려면 로그인이 필요합니다.