그누보드 2개를 설치했는데 최신게시물 에러.. 정보
그누보드 2개를 설치했는데 최신게시물 에러..본문
cafe24 호스팅 받는데 그누보드를 2개 설치했습니다.
먼저 설치한 폴더명은 g4 나중것은 gb4
나중에 설치한 그누보드에 게시판 만들어서 글 남긴다음
최근글을 불렀더니 계속 에러납니다.
최신게시물 불러오는 문서의 윗부분입니다.
<?
include_once("../gb4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("../gb4/_common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>
페이지 에러내용은 최근게시물 부분에서
select * from where bo_table = 'notice'
1064 : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'where bo_table = 'notice'' at line 1
이런 에러가 나오네요..
조언 부탁 드립니다.
댓글 전체

select * from 테이블명 where bo_table = 'notice'
위와 같이 테이블명이 없네요 테이블명을 지정하는 변수에 값이 없거나 넘어오지 않은듯합니다
추가로 테이블명을 어찌됬든 불러오거나 받아서 from 옆에 집어넣어 줘야하니 인크루드경로나
게시판관리테이블이나 글저장테이블생성/이상유무를 체크할것을 권장합니당
위와 같이 테이블명이 없네요 테이블명을 지정하는 변수에 값이 없거나 넘어오지 않은듯합니다
추가로 테이블명을 어찌됬든 불러오거나 받아서 from 옆에 집어넣어 줘야하니 인크루드경로나
게시판관리테이블이나 글저장테이블생성/이상유무를 체크할것을 권장합니당
제가 보기엔
include_once("../gb4/_common.php"); << 요거이 좀 이상한대요?
include_once("./_common.php"); 으로 수정하고
_common.php 파일의 내용을
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
로 수정해야 하는거 아닌가요?
index파일 위치가 어딘지요?
include_once("../gb4/_common.php"); << 요거이 좀 이상한대요?
include_once("./_common.php"); 으로 수정하고
_common.php 파일의 내용을
<?
$g4_path = ".."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
로 수정해야 하는거 아닌가요?
index파일 위치가 어딘지요?