sql문 코멘트는 빼고 나오게 한는 방법 좀 알려주세요 채택완료
아스널
11년 전
조회 2,954
if ($smalls[$j][bo_table]) {
$sql = "select count(wr_id) as cnt from $g4[write_prefix]{$smalls[$j][bo_table]} where wr_is_comment > -1 and ca_name = '{$smalls[$j][ca_name]}' and wr_datetime > '$new_datetime'";
$row = sql_fetch($sql);
}
이런 구문을 사용하고 있는데 게시물 코멘트만 입력해도 뉴아이콘이 나옵니다.
그래서
$sql = "select count(wr_id) as cnt from $g4[write_prefix]{$smalls[$j][bo_table]} where wr_datetime > '$new_datetime'";
이렇게 바꿔보았는데 코멘트가 등록되어도 뉴 아이콘이 나옵니다. 잘못한 건가요 ?
코멘트는 제외하는 구문을 좀 알려주세요.
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인