echo latest("theme/pic_basic3","free2", 2, 28,1 ,"wr_2 = 1"); 

 echo latest("theme/pic_basic3","free2", 2, 28,1 ,"wr_2 = 1"); 

QA

 echo latest("theme/pic_basic3","free2", 2, 28,1 ,"wr_2 = 1"); 

답변 1

본문

 echo latest("theme/pic_basic3","free2", 2, 28,1 ,"wr_2 = 1");  값을 넣으니 실행이 안되네요..

wr_2 = 1 이값이 실행이 됙 하려면 어떻게 해야할까요?

이 질문에 댓글 쓰기 :

답변 1

인자를 추가하려면 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");

 

로 해보세요

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로