불당님의 친구관리 설치했는데...아래와 같은 오류가 뜨는데 어떡해야하나요?
소스주소
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=58409&sca=&sfl=mb_id%2C1&stx=echo2me&page=2
오류내용
select count(*) as cnt from ( select a.* from g4_login a left join g4_member b on (a.mb_id = b.mb_id)) as n1, ( select c.* from g4_friend c where c.mb_id = 'ivdex') as n2 where n1.mb_id = n2.fr_id
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 'select a.* from g4_login a left join g4_member b on (a.mb_id =
찾아본결과 SQL 버전이 안맞는다고 하는데...수정 좀 부탁드립니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=58409&sca=&sfl=mb_id%2C1&stx=echo2me&page=2
오류내용
select count(*) as cnt from ( select a.* from g4_login a left join g4_member b on (a.mb_id = b.mb_id)) as n1, ( select c.* from g4_friend c where c.mb_id = 'ivdex') as n2 where n1.mb_id = n2.fr_id
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 'select a.* from g4_login a left join g4_member b on (a.mb_id =
찾아본결과 SQL 버전이 안맞는다고 하는데...수정 좀 부탁드립니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
서브쿼리 사용은 MySQL 버전 4.1.x 버전 대부터 사용이 가능합니다.
MySQL 버전을 확인해 보세요
위의 새로 추가한 테이블로 보이는 g4_friend 테이블에 대해서 사용을 어떻게 하셨는지????
$g4['friend_table'] 와 같은 방법으로 사용하셨다면...
config.php 파일을 열어보시면 전역 변수들이 설정되어 있습니다..
43라인부터 나오는데... 이곳에
$g4['friend_table'] = $g4['table_prefix'] . "friend";
를 추가해보세요...