\shop\navigation1.inc.php 쿼리문 에러.. 정보
\shop\navigation1.inc.php 쿼리문 에러..본문
원래 쿼리문..
select ca_name from $g4[yc4_category_table] where ca_id = '$code'
에러 안나는 쿼리문
select bo_subject from mysql.g4_board where bo_table = '$code'
에러가 나는 쿼리문..
select bo_subject from $g4[g4_board_table] where bo_table = $code'
에러 내용
g4_로 시작하는 모든 테이블에서 아래와 같은 에러가 나옵니다..
문장 에러인데요..
테이블을 못 찾아주는것 같습니다..
select bo_subject from where bo_table = 'uco01'
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 = 'uco01'' at line 1
\shop\navigation1.inc.php 에 있던 파일을 복사해서 게시판 쓸려고했는데, 이런 문제가 나왔네요.. 모든 테이블은 같은 DB아래 있구요..
문제 해결법 부탁드립니다..
select ca_name from $g4[yc4_category_table] where ca_id = '$code'
에러 안나는 쿼리문
select bo_subject from mysql.g4_board where bo_table = '$code'
에러가 나는 쿼리문..
select bo_subject from $g4[g4_board_table] where bo_table = $code'
에러 내용
g4_로 시작하는 모든 테이블에서 아래와 같은 에러가 나옵니다..
문장 에러인데요..
테이블을 못 찾아주는것 같습니다..
select bo_subject from where bo_table = 'uco01'
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 = 'uco01'' at line 1
\shop\navigation1.inc.php 에 있던 파일을 복사해서 게시판 쓸려고했는데, 이런 문제가 나왔네요.. 모든 테이블은 같은 DB아래 있구요..
문제 해결법 부탁드립니다..
댓글 전체
$code 에 따옴표 하나 없는것 같네요.
제 오타 같은데, 설마.. 그 문제가 아닌것 같은데, 확인해볼께요~
네.. 그 문제가 아니네요~
g4 테이블쪽에 접근이 안되도록 되어 있는거 같아요..ㅋ
우선.. 2번째로 적용했어요 ㅠ
g4 테이블쪽에 접근이 안되도록 되어 있는거 같아요..ㅋ
우선.. 2번째로 적용했어요 ㅠ
navigation1.inc.php 을 어디서 어떻게 include 했느냐가 문제입니다
config.php 및 shop.config.php가 먼저 include 된 후에 include 되어야 합니다
config.php 및 shop.config.php가 먼저 include 된 후에 include 되어야 합니다
확인해보고 해보겠습니다!