카페 접속하면 최신글 중에 리플 글 안보이게 ... 정보
카페 접속하면 최신글 중에 리플 글 안보이게 ...본문
리플 달린것도 새글 처럼 올라와 있는데
이거 본문 제목만 보이고 리플은 안보이게 할수 있는 방법이 없을까요?
초자다 보니...^^
club 폴더에 ㅡ>club.lib.php 이 파일을 열어서 최신글 목록에..
$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
위 부분을
$sql = " select * from $tmp_write_table where wr_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
이렇게도 고쳐 봤는데 이러면 리플단 본문이 안보이더군요 리플 안달린건 보이고요.그래서
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
이렇게 해봤더니 처음 카페 생성하면 에러가 뜨는군요 기존에 있는것은 제대로 되는데...
123 이란 카페 생성시 에러가...
select * from g4_write_123 where wr_is_comment = 0 and ca_name = '공지사항' order by wr_id desc limit 0, 5
1054 : Unknown column 'wr_is_comment' in 'where clause'
error file : /club/cb_main.php
이런 에러가 뜨네요
방법이 없을까요..
이거 본문 제목만 보이고 리플은 안보이게 할수 있는 방법이 없을까요?
초자다 보니...^^
club 폴더에 ㅡ>club.lib.php 이 파일을 열어서 최신글 목록에..
$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
위 부분을
$sql = " select * from $tmp_write_table where wr_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
이렇게도 고쳐 봤는데 이러면 리플단 본문이 안보이더군요 리플 안달린건 보이고요.그래서
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and ca_name = '$ca_name' order by wr_id desc limit 0, $rows ";
이렇게 해봤더니 처음 카페 생성하면 에러가 뜨는군요 기존에 있는것은 제대로 되는데...
123 이란 카페 생성시 에러가...
select * from g4_write_123 where wr_is_comment = 0 and ca_name = '공지사항' order by wr_id desc limit 0, 5
1054 : Unknown column 'wr_is_comment' in 'where clause'
error file : /club/cb_main.php
이런 에러가 뜨네요
방법이 없을까요..
추천
0
0
댓글 전체
$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' and wr_reply = '' order by wr_id desc limit 0, $rows ";
요렇게 하면 되지 않을까요???
요렇게 하면 되지 않을까요???
안되는데요....ㅡ.ㅡ^
지금 이거 없앨려고 2틀째 씨름중인데 워낙에 초보라..힘드네요...^^
지금 이거 없앨려고 2틀째 씨름중인데 워낙에 초보라..힘드네요...^^
$sql = " select * from $tmp_write_table where wr_comment > -1 and ca_name = '$ca_name' and wr_is_comment = 0' order by wr_id desc limit 0, $rows ";
으로 하니까 되네요.!!
으로 하니까 되네요.!!