최신글과 여분필드 정보
최신글과 여분필드본문
출력하고자는 글만 최신글로 출력하려고 합니다.
그래서 여분필드에 값을 주어
예:) wr_1 = 1 인 글을 출려고하고 wr_1 = 0 이면 최신글로 출력하지 않으려고 합니다.
이렇게 구현이 가능할까요?
혹시 참고할 스킨이라도 있으면 알려주세요.
댓글 전체

lib/latest.lib.php 파일을 수정하셔야 합니다.
lib/latest.lib.php를 수정하세요
수정전
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
wr_1=1 인것만 조회
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and wr_1=1 order by wr_num limit 0, $rows ";
wr_1=0 이 아닌것 조회
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and wr_1 <> 0 order by wr_num limit 0, $rows ";
수정전
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
wr_1=1 인것만 조회
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and wr_1=1 order by wr_num limit 0, $rows ";
wr_1=0 이 아닌것 조회
$sql = " select * from $tmp_write_table where wr_is_comment = 0 and wr_1 <> 0 order by wr_num limit 0, $rows ";
고수님 두분 감사합니다^^