최신글 특정 글 지정해서 보이게 하기!!!!(고수님들 도움 좀 주세요) 정보
최신글 특정 글 지정해서 보이게 하기!!!!(고수님들 도움 좀 주세요)본문

<td width="281" height="130"><?=latest("notice","samsungict31",1,20);?></td>
<td width="281" height="130"><?=latest("notice","samsungict31",1,20);?></td>
위 사진은 <?=latest("notice","samsungict31",1,20);?> 2번 적용된것입니다.
게시판 따로만들면 일거리가 커지고 위 처럼 특정 게시물을따로 뽑고 싶습니다.
<?=latest("notice","samsungict31",1,20,1);?>
<?=latest("notice","samsungict31",1,20,2);?>
이렇게하는게 아니겠죠.ㅎㅎ
고수님들 도움좀 주세요.
한 게시판 게시물 특정글만 따로 따로 추출하고 싶어요
댓글 전체
힌트나갑니다....
1. 특정글만 뽑는다면 글쓰기시 여분필드를 사용해서 특정글임을 알려줘야겠죠?
ex) wr_10 = 'special'
2. lib/latest.lib.php 를 latest2.lib.php 복사하고 내용 수정
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
=>function latest2($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
$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_10 = 'special' order by wr_num limit 0, $rows ";
3. 인덱스 페이지 상단에 include_once("$g4[path]/lib/latest2.lib.php"); 추가하고
<?=latest2("notice","samsungict31",1,20,1);?>
++++++++++++++++++++++++++++++++++++++++++++++++++
이런식으로 작업했던 기억이 ㅡ,.ㅡ;;
1. 특정글만 뽑는다면 글쓰기시 여분필드를 사용해서 특정글임을 알려줘야겠죠?
ex) wr_10 = 'special'
2. lib/latest.lib.php 를 latest2.lib.php 복사하고 내용 수정
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
=>function latest2($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
$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_10 = 'special' order by wr_num limit 0, $rows ";
3. 인덱스 페이지 상단에 include_once("$g4[path]/lib/latest2.lib.php"); 추가하고
<?=latest2("notice","samsungict31",1,20,1);?>
++++++++++++++++++++++++++++++++++++++++++++++++++
이런식으로 작업했던 기억이 ㅡ,.ㅡ;;