쿼리문 좀 봐주세요....아무결과도 안나와서요...ㅠㅠ
본문
안녕하세요?
쿼리를 아래처럼 작성했습니다.
wr_content 값에 따라서 종류별로 카운팅을해서 출력하고 싶어서요...
$query_t = "select count(if(wr_content<=3,wr_content,0)) as audio, count(if(wr_content==2 or wr_content==3,wr_content,0)) as side, count(if(wr_content==3,wr_content,0)) as rcam, count(if(wr_content==4,wr_content,0)) as 1din from {$write_table} where wr_is_comment = 0 and wr_datetime between '$start_date' and '$end_date'";
$list_t = sql_fetch_array(sql_query($query_t));
print_r($list_t);
이렇게 했는데 $list_t에 아무런 값도 나오질 안네요...ㅠㅠ
오랜만에 보니깐 기억이 가물가물 해서요......
고수님들 어디가 잘못됐는지 좀 알려주세용...ㅠㅠ
부탁좀 드릴께용...^^
답변을 작성하시기 전에 로그인 해주세요.