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 포인트
4년 전
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개
그누랑놀자
4년 전
4년 전
G5_TIME_YMD
답변을 작성하려면 로그인이 필요합니다.
G5_SERVER_TIME 쓰는게 맞나요 ?