새로운 페이지에서 최신글 추출 방법

새로운 페이지에서 최신글 추출 방법

QA

새로운 페이지에서 최신글 추출 방법

본문

메인.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로 가정할 때
?>

와 같이 하시면 최신글을 불러올 수 있을 겁니다. 

내용은 추출되는데 css가 안먹으면서 추출되는 내용 위에 아래같은 에러문구가 떠요ㅠ0ㅠ

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 579

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 581

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 582

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 583

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 584

Warning: Cannot modify header information - headers already sent by (output started at 경로/m/include/head.php:8) in 경로/bbs/common.php on line 585

답변을 작성하시기 전에 로그인 해주세요.
전체 220
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT