하루에 포인트 발송 횟수 제한 코드좀 바주세요 채택완료
그누랑놀자
4년 전
조회 1,427
po_expire_date= '".G5_SERVER_TIME."' 이거 추가전에 아이디랑 ppoint가 같을시에는 잘되는데
오늘 날짜 기준으로 할려고 하니 안되네요 ㅠㅠ
</strong></p>
<p>$row3 = sql_query(" select count(po_rel_table) as total1 from {$g5['point_table']}</p>
<p>where po_rel_table = 'ppoint' and po_rel_action='".$member['mb_id']."'</p>
<p>and po_expire_date= '".G5_SERVER_TIME."' ");</p>
<p> </p>
<p>$rs3 = sql_fetch_array($row3);</p>
<p>if ($rs3['total1'] >= 1)
alert("1개 이상 발송이 금지됨니다.");</p>
<p><strong>
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
채택된 답변
+20 포인트
4년 전
$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."' ");
</code></pre>
<pre>
<code>if ($row['total1'] >= 1)
</code></pre>
<p><code>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
그누랑놀자
4년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
G5_SERVER_TIME 쓰는게 맞나요 ?