sql 오류 관련해서 문의 드립니다. ㅠㅠ

sql 오류 관련해서 문의 드립니다. ㅠㅠ

QA

sql 오류 관련해서 문의 드립니다. ㅠㅠ

본문

// 중복등록 체크
$sql = " select count(*) as cnt
 from {$g4['yc4_item_stocksms_table']}
 where it_id = '$it_id'
 and ss_hp = '$ss_hp'
 and ss_send = '0' ";
$row = sql_fetch($sql);​

 

위와 같이 sql 문을 작성하면 아래와 같은 오류 메세지가 나옵니다. 왜 그런건가요?

해결방법이 있으면 답변 부탁드립니다.

 


select count(*) as cnt from where it_id = 135601223764 and ss_hp = 000-0000-0000 and ss_send = 0
 
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 it_id = 135601223764 and ss_hp = 000-0000-0000 a' at line 3
 
error file : /shop/itemstocksmsupdate.php


이 질문에 댓글 쓰기 :

답변 2

사용하는 것이 영카트5라는 말인가요, 영카트4라는 말인가요?

영카트4에는  $g4['yc4_item_stocksms_table']이 없어요

영카트5라면 $g5['g5_shop_item_stocksms_table'] 입니다

 

영카트5코드를 복사해서 영카트4에 사용하려는 것이라면 코드만 복사해서 이용할 수 없는 작업니다

 

 

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

회원로그인

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