초보에요.. 도와주세요 ㅠㅠ
Copy
<?phpif (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가?> <img src="http://websiting6.dothome.co.kr/img/mainimage.jpg" width="100%"><!-- 메인화면 최신글 시작 --><?php// 최신글$sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'pc' ";if(!$is_admin) $sql .= " and a.bo_use_cert = '' ";$sql .= " order by b.gr_order, a.bo_order ";$result = sql_query($sql);for ($i=0; $row=sql_fetch_array($result); $i++) { // 이 함수가 바로 최신글을 추출하는 역할을 합니다. // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. // 사용방법 // latest(스킨, 게시판아이디, 출력라인, 글자수); echo latest("basic", "tha_hnote", 5, 25);}?><!-- 메인화면 최신글 끝 -->
답변 1개 / 댓글 1개
채택된 답변
+20 포인트
불량학생™
2014-10-31 (금) 11:50:53
Copy
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
//tha_hnote게시판만 노출
echo latest("basic", "tha_hnote", 5, 25);
?>
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.