글쓰기 누르면 여분필드 중복 검사후 글쓰기 > 그누4 질문답변

그누4 질문답변

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

글쓰기 누르면 여분필드 중복 검사후 글쓰기 정보

글쓰기 누르면 여분필드 중복 검사후 글쓰기

본문

일주일내내 머리싸메고 고생하고 있습니다.
고수님들의 조언 부탁드립니다.

일종의 신청서 같은 게시판인데

글쓰기 화면에서 주민번호를 입력받아서 여분 필드 wr_2에 저장하고 있습니다.

1. 글쓰기를 하기전에 일단 회원가입처럼 주민번호(wr_2)를 중복체크하는 화면으로 넘어가서
2. 중복체크를 하고 중복이면 다시 리스트화면(글쓰기못하도록)으로
3. 중복이 아니면 글쓰기 화면으로 넘어가서 글쓰기를 할 수 있도록

하려면 어떻게 해야하나요?

( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '175004' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )

1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

error file : /15sir/bbs/board.php