기본적인 sql문 질문입니다

기본적인 sql문 질문입니다

QA

기본적인 sql문 질문입니다

본문

안녕하세요

 

백앤드는 정말 모르는 프론트앤드 개발자입니다

 

백앤드를 공부하던중에 오류가 발생해서 질문드리게 되었습니다

 

$sql = " INSERT INTO {$g5['re_resume']} SET re_name = '".$re_name."', re_eg_name = '".$re_eg_name."', re_birth = '".$re_birth."', re_sex = '".$re_sex."', re_email = '".$re_email."', re_mobile = '".$re_mobile."', re_phone = '".$re_phone."', re_addr1 = '".$re_addr1."', re_addr2 = '".$re_addr2."', re_pw = '".$re_pw."', re_pw2 = '".$re_pw2."', re_picture = '".$re_picture."', marriage = '".$marriage."', branch = '".$branch."', pt_ex = '".$pt_ex."', wo_ex = '".$wo_ex."', in_ex = '".$in_ex."', re_route = '".$re_route."', drinking = '".$drinking."', smoking = '".$smoking."', intro_content = '".$intro_content."', char_content = '"$char_content."', motive_content = '".$motive_content."' ";

 

이런식으로 제가 코드를 짰는데요

 

아무리 봐도 잘못된 부분을 찾을 수가 없습니다.

 

어느 부분에서 오류가 난걸까요

이 질문에 댓글 쓰기 :

답변 2

$sql = " INSERT INTO {$g5['re_resume']} SET re_name = '".$re_name."', re_eg_name = '".$re_eg_name."', re_birth = '".$re_birth."', re_sex = '".$re_sex."', re_email = '".$re_email."', re_mobile = '".$re_mobile."', re_phone = '".$re_phone."', re_addr1 = '".$re_addr1."', re_addr2 = '".$re_addr2."', re_pw = '".$re_pw."', re_pw2 = '".$re_pw2."', re_picture = '".$re_picture."', marriage = '".$marriage."', branch = '".$branch."', pt_ex = '".$pt_ex."', wo_ex = '".$wo_ex."', in_ex = '".$in_ex."', re_route = '".$re_route."', drinking = '".$drinking."', smoking = '".$smoking."', intro_content = '".$intro_content."', char_content = '"$char_content."', motive_content = '".$motive_content."' ";

 

echo $sql;exit;

답변을 작성하시기 전에 로그인 해주세요.
전체 39
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT