쿼리좀 봐주세요!! 정보
쿼리좀 봐주세요!!
본문
$count_blog_write = "select count(*) as cnt from gb4_post where blog_id = '$mb_id' and date_sub(now(), interval 1 hour) >= real_date";
$check_blog_write = sql_fetch($count_blog_write);
지블로그지만 뭐 그누문제이기도 해서;
gb4_post field의 id/real_date로 1시간이내 작성글 포인트를 제어하려하는데요(도배방지)
$check_blog_write[cnt]의 결과값이 자꾸 0으로 나옵니다.
쿼리에서 고쳐야할 부분있으면 리플 부탁드립니다
$check_blog_write = sql_fetch($count_blog_write);
지블로그지만 뭐 그누문제이기도 해서;
gb4_post field의 id/real_date로 1시간이내 작성글 포인트를 제어하려하는데요(도배방지)
$check_blog_write[cnt]의 결과값이 자꾸 0으로 나옵니다.
쿼리에서 고쳐야할 부분있으면 리플 부탁드립니다
댓글 전체

and real_date >= (now()- interval 1 hour)