답변 1개 / 댓글 4개
채택된 답변
+20 포인트
lib/"latest.lib.php" 를 수정하시고
// $cache_time 캐시 갱신시간
function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40, $cache_time=1, $options='',$category='')
{ ...
$tmp_write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
if( $category) $ca_cond=" and ca_name='$category' "; else $ca_cond='';
$sql = " select * from {$tmp_write_table} where wr_is_comment = 0 $ca_cond order by wr_num limit 0, {$rows} ";
index.php 등에서
echo latest('pic_list', 'notice', 4, 23, 1, '', '분류명');
대용량에는 적절하지 않습니다.
답변에 대한 댓글 4개
답변을 작성하려면 로그인이 필요합니다.
