인덱스 페이지 에러 메세지 해독(?) 요청^^ 정보
인덱스 페이지 에러 메세지 해독(?) 요청^^본문
수고하십니다.
아래 사이트 최근게시물이 잘 나왔었는데 갑자기(?) 에러메세지가 나옵니다.
지도 바랍니다.
(그누보드 완전 초보이며 php입문서 탐독(?)중이며 html 쬐금 아는 수준입니다. -_-;;)
그누버젼 : 4.09.
■ 에러메세지
==============================================================
select * from g4_write_board where wr_is_comment = 0 and wr_datetime between date_sub(now(), interval day) and now() order by wr_id desc limit 0, 5
1064 : You have an error in your SQL syntax near ') and now() order by wr_id desc limit 0, 5 ' at line 1
echo "<p>";
echo "<font color=#666666><b>포토앨범</b></font>";
echo latest("la_picture_thumb", photo, 5, 18, "4,25");
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
error file : /gnuboard4/index.php
=============================================================
■ index.php 소스
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<style>
td {font-size:9pt}
</style>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
include_once("./_head.php");
?>
<style>
td {font-size:9pt}
</style>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
}
echo latest("basic", board, 5, 70, "4,25");
// latest(스킨, 게시판아이디, 출력라인, 글자수);
}
echo latest("basic", board, 5, 70, "4,25");
echo "<p>";
echo "<font color=#666666><b>포토앨범</b></font>";
echo latest("la_picture_thumb", photo, 5, 18, "4,25");
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
댓글 전체
미천한 답변이지만 새로 받으셔서 /common.php와 /index.php와 /lib/latest.lib.php를 덮어 쓰세요. 현제 디비가 board 라는 게시판인데 검색열의 검색범위를 못찾는듯합니다.
그리고 최근 라이브러리가 약간 이상한듯합니다.
검색 sql구문이
select * from g4_write_board where wr_is_comment = 0 order by wr_id desc limit 0, 5
이렇게 처리 되어야 하는데 이상하군요.
그리고 최근 라이브러리가 약간 이상한듯합니다.
검색 sql구문이
select * from g4_write_board where wr_is_comment = 0 order by wr_id desc limit 0, 5
이렇게 처리 되어야 하는데 이상하군요.
지적하신 세 파일 덮어 해결했습니다.
첨부터 다시 시작해야 될 것 같습니다.
답변 감사합니다.
건강하세요.^^
첨부터 다시 시작해야 될 것 같습니다.
답변 감사합니다.
건강하세요.^^