최신 게시글만들때 공지 관련... 정보
최신 게시글만들때 공지 관련...본문
메인화면에 최신 게시글 만들때 ( latest.skin.php 파일 관련해서 )
1. 게시판 리스트에서 공지로 체크된 글만 메인에 띄어보이고 싶은데
아무리 연구를 해도 안되네요.
2. 갤러리도 마찬가지 로요..
갤러리에서도 공지로 체크된 이미지만...
latest.skin.php 를 이용하여 메인에... 공지체크된 이미지만 띄우고 싶습니다.
제가 초보라서.. ㅠ.,ㅠ
고수님들의 빠른 답변 부탁드립니다.
댓글 전체
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
...
..
.
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
.
..
...
}
여기서 $sql만
$notice_array = explode("\n", trim($board['bo_notice']));
$notice_in= implode( ',', $notice_array)
$sql = " select * from $tmp_write_table where wr_id in ( $notice_in) order by wr_id desc limit 0, $rows ";
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
...
..
.
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
.
..
...
}
여기서 $sql만
$notice_array = explode("\n", trim($board['bo_notice']));
$notice_in= implode( ',', $notice_array)
$sql = " select * from $tmp_write_table where wr_id in ( $notice_in) order by wr_id desc limit 0, $rows ";