최근 게시물 에러
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) in /home/hosting_users/max2000m/www/gnu3/lib/sql.lib.php on line 13
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/hosting_users/max2000m/www/gnu3/lib/sql.lib.php on line 13
select * from where bo_table = 'freeboard'
1045 : 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) in /home/hosting_users/max2000m/www/gnu3/lib/sql.lib.php on line 13
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/hosting_users/max2000m/www/gnu3/lib/sql.lib.php on line 13
select * from where bo_table = 'freeboard'
1045 : Access denied for user: 'max2000m@localhost' (Using password: NO)
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 1개
먼저 그누보드는 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
이렇게 불러 오시면 됩니다.
성공 하세요 ^^