새로운 페이지에서 최신글 추출 방법
본문
메인.html
ㄴbbs (이 폴더 안에 그누보드가 깔려있습니다)
ㄴadm
ㄴbbs
ㄴ등등...
ㄴsub폴더
ㄴsub.html
이런 구조인데요. sub.html 에서 최신글을 추출하고싶은데 어떻게 해야하나요?
답변 1
<?php
include_once('../common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
echo latest("basic", "freeboard", 5, 50); // basic스킨에 게시판명이 freeboard로 가정할 때
?>
와 같이 하시면 최신글을 불러올 수 있을 겁니다.
!-->
답변을 작성하시기 전에 로그인 해주세요.