카테고리별 최신글 추출 관련질문입니다.
본문
카테리고리가 있는 게시판에서..
카테고리별로 추출하고자 합니다.
위와같이 수정해보았으나 반응이 없습니다.
카테고리별로 추출하고자 합니다.
1.호출 latest("basic_gallery", "게시판명", 8, 15, "ca_name='분류1'");
2. latest.lib.php latest()함수 수정
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
위 코드 수정
if($options) $add_qry=" and ".$options;
$sql = " select * from $tmp_write_table where wr_is_comment = 0 $add_qry order by wr_num limit 0, $rows ";
위와같이 수정해보았으나 반응이 없습니다.
답변을 작성하시기 전에 로그인 해주세요.