최근 게시물 에러 정보
그누보드 최근 게시물 에러관련링크
http://tomschool.com/
22회 연결
본문
gnu3폴더 tom: 웹작업폴더로 구분됨..
아래소스는 tom폴더에서 작업
안되는군요.. 제로에서.. 컨버트했넌디.. 힘덜다..
<?
define("_DOCTYPE_", "STYLE"); //헤드와 푸터 불러오는 부분
$html_title = "그누보드 로그인과 최근게시물";
include '../gnu3/lib/sql.lib.php';
include "../gnu3/lib/latest.lib.php"; //최근 게시물 불러올때 꼭!! 들어가야함
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><?latest('basic', freeboard, 5, 30); ?></p>
</body>
</html>
Warning: mysql_query() [function.mysql-query]: Access denied for user: 'max2000m@localhost' (Using password: NO)
아래소스는 tom폴더에서 작업
안되는군요.. 제로에서.. 컨버트했넌디.. 힘덜다..
<?
define("_DOCTYPE_", "STYLE"); //헤드와 푸터 불러오는 부분
$html_title = "그누보드 로그인과 최근게시물";
include '../gnu3/lib/sql.lib.php';
include "../gnu3/lib/latest.lib.php"; //최근 게시물 불러올때 꼭!! 들어가야함
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>제목 없음</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><?latest('basic', freeboard, 5, 30); ?></p>
</body>
</html>
Warning: mysql_query() [function.mysql-query]: Access denied for user: 'max2000m@localhost' (Using password: NO)
댓글 전체

음.. 먼저 그누보드의 최신글 불러 오는 부분의 이해를 잘못 하신듯 합니다.
먼저 그누보드는 index.php 파일에서 함수를 불러와서 최신글을 뛰워 줍니다.
간단히 말씀드리면 index.php와 꼭 연결이 되어야 한다는 것이죠.
먼저 http://tomschool.com/tom/main.htm 파일을 불러 오시면 안됩니다.
gnu3 폴더의 main.php를 수정 하시면 되지만 나중에 해깔릴수도 있느니 놔두시고. 별도의 파일을 만드시면 될듯하네요. 별포의 파일명을 latest.php라고 가정을 합니다.
latest.php파일에 다음의 내용을 넣으십시요.
<? define("_DOCTYPE_", "STYLE"); ?>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$html_title = "최신게시물";
include "./lib/latest.lib.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><?latest('basic', freeboard, 5, 30); ?></p>
</body>
</html>
자 이렇게 하시면 gnu3 폴더에 latest.php파일을 넣고
http://tomschool.com/tom/main.htm 이거 를 불러 오게 하지 마시고.
http://tomschool.com/gnu3/?doc=latest.php
이렇게 불러 오시면 됩니다.
성공 하세요 ^^
먼저 그누보드는 index.php 파일에서 함수를 불러와서 최신글을 뛰워 줍니다.
간단히 말씀드리면 index.php와 꼭 연결이 되어야 한다는 것이죠.
먼저 http://tomschool.com/tom/main.htm 파일을 불러 오시면 안됩니다.
gnu3 폴더의 main.php를 수정 하시면 되지만 나중에 해깔릴수도 있느니 놔두시고. 별도의 파일을 만드시면 될듯하네요. 별포의 파일명을 latest.php라고 가정을 합니다.
latest.php파일에 다음의 내용을 넣으십시요.
<? define("_DOCTYPE_", "STYLE"); ?>
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$html_title = "최신게시물";
include "./lib/latest.lib.php";
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p><?latest('basic', freeboard, 5, 30); ?></p>
</body>
</html>
자 이렇게 하시면 gnu3 폴더에 latest.php파일을 넣고
http://tomschool.com/tom/main.htm 이거 를 불러 오게 하지 마시고.
http://tomschool.com/gnu3/?doc=latest.php
이렇게 불러 오시면 됩니다.
성공 하세요 ^^