메인에서 최글글 추출할려고 하는데..
본문
일반 페이지 하나 만들어서 최근글 추출 할려고 한다면..
여기에 어떤 소스를 넣어 주어야 하나요?
<!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" />
<title>무제 문서</title>
</head>
<body>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><?php echo latest("basic", '1', 5, 70); ?></td>
</tr>
</table>
</body>
</html>
답변 2
일반 페이지 만들 때 위에서 처럼 하지 마시고
index.php 화일 복사해서 사용하시면 편합니다...
아래 진하게 한 부분은 고정하시고
원하는 내용을 그 사이에 넣으세요...
<?php
include_once('./_common.php');
include_once('./_head.php');
?>
원하는 내용....
<?php echo latest("basic", '1', 5, 70); ?>
<?php
include_once('./_tail.php');
?>
include_once('./common.php'); 와
include_once(G5_LIB_PATH.'/latest.lib.php') 추가하시면 될듯 합니다.
둘다 해당페이지의 경로로 맞추시고요
답변을 작성하시기 전에 로그인 해주세요.