윈

쪽지2 질문 드립니다

1.쪽지 클릭시 윈도우 창이 뜨는데

쪽지를 서브페이지 처럼

메인페이지에 뜨게 하려면

어느페이지를 어떻게 수정해야하나요??

2. 쪽지2 주소록을 클릭하면

select 'recv' as type, a.me_send_mb_id as mb_id, count(*) as cnt, b.mb_nick, b.mb_email, b.mb_homepage from g4_memo_recv a left join g4_member b on a.me_send_mb_id = b.mb_id where a.me_recv_mb_id = 'admin' group by a.me_send_mb_id union all select 'send' as type, a.me_recv_mb_id as mb_id, count(*) as cnt, b.mb_nick, b.mb_email, b.mb_homepage from g4_memo_send a left join g4_member b on a.me_recv_mb_id = b.mb_id where a.me_send_mb_id = 'admin' group by a.me_recv_mb_id union all select 'save_send' as type, a.me_recv_mb_id as mb_id, count(*) as cnt, b.mb_nick, b.mb_email, b.mb_homepage from g4_memo_save a left join g4_member b on a.me_recv_mb_id = b.mb_id where a.memo_owner = 'admin' and memo_type='send' group by a.me_recv_mb_id union all select 'save_recv' as type, a.me_send_mb_id as mb_id, count(*) as cnt, b.mb_nick, b.mb_email, b.mb_homepage from g4_memo_save a left join g4_member b on a.me_send_mb_id = b.mb_id where a.memo_owner = 'admin' and memo_type='recv' group by a.me_send_mb_id

1064 : You have an error in your SQL syntax near 'union all select 'send' as type, a.me_recv_mb_id as mb_id, count(*' at line 3

error file : /bbs/memo.php
이런 메세지가 뜹니다

어느부분이 잘못된걸까여;

댓글 1개

http://dev.mysql.com/doc/refman/4.1/en/union.html

UNION is used to combine the result from multiple SELECT statements into a single result set. UNION is available from MySQL 4.0.0 on.

mysql 버젼이 낮아서 그렇습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
08-10-13 조회 1,101
08-10-13 조회 865
08-10-13 조회 853
08-10-13 조회 917
08-10-13 조회 935
08-10-13 조회 887
08-10-13 조회 909
08-10-13 조회 896
08-10-13 조회 1,041
08-10-13 조회 897
08-10-13 조회 1,775
08-10-13 조회 1,637
08-10-13 조회 887
08-10-13 조회 857
08-10-13 조회 759
08-10-12 조회 958
08-10-12 조회 846
08-10-12 조회 796
08-10-12 조회 811
08-10-12 조회 1,032