채택완료

메인페이지에 최신글 추출 문제 부탁드립니다.

2015-04-02 (목) 16:44:41 2,598

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="8%">&nbsp;</td>
    <td align="right" valign="top"><img src="images/notice.jpg" width="292" height="54" />
    </table></td>
</body>
</html> 

소스입니다.

진한 글씨 부분 밑으로 최신글을 추출하고 싶은데 소스 좀 자세히 알려주세요ㅠㅠ

7debc00e246f2025d3b66c21b5f14dbb_1427960581_1058.jpg

참고로 경로는 이렇게 되어있습니다. 

|

답변 1개 / 댓글 2개

채택된 답변
+20 포인트
2015-04-02 (목) 16:49:49

gnuboard4 폴더 안에 파일을 모두를 현재 index.html 폴더로 옮겨야 되요

그리고 나서 <?=latest("basic", "게시판ID", 5, 30)?>

이런식으로 하면 출력 되요 

답변에 대한 댓글 2개

index.html 파일 맨위에 인클루드? 그거는 안해도 되는건가요?
파일을 옮기면 index.php 파일이 있어요
거기에 index.html 파일을 적용해도 되구요
index.html 파일에 적용하려면
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("./_head.php");

이런 파일들을 인클루드 해야지요

답변을 작성하려면 로그인이 필요합니다.