답변 2개
채택된 답변
+20 포인트
/lib/latest.lib.php
// 최신글 추출
function latest()를 다른 이름으로 하나 복사하시고, $wr_val 파라미터 추가하시고
$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 and wr_1='{$wr_val}' order by wr_num limit 0, {$rows} ";
답변을 작성하려면 로그인이 필요합니다.