답변 1개
채택된 답변
+20 포인트
7년 전
인자를 추가하려면 latest 함수를 수정해야 합니다만 기본 latest 함수는
function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $cache_time=1, $options='')
6번째 인자가 option 변수로 할당되어 있으니
쿼리에 적용하려면 lib/latest.lib.php 파일 67라인
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 order by wr_num limit 0, {$rows} ";
를
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 {$option} order by wr_num limit 0, {$rows} ";
이렇게 해보세요.
echo latest("theme/pic_basic3","free2", 2, 28,1 ,"wr_2 = 1");
는
echo latest("theme/pic_basic3","free2", 2, 28,1 ," and wr_2 = 1");
로 해보세요
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인