cartupdate.php와 ajax.action.php에서 반대현상

cartupdate.php와 ajax.action.php에서 반대현상

QA

cartupdate.php와 ajax.action.php에서 반대현상

답변 1

본문

if ($it['it_2'] == '1' ) {

     $ct_reserve = 1;

} else {

        $ct_normal = 1;

}

 

이렇게 같은 소스를 넣었는데

 

결과값이 둘 이 다르게 나옵니다

 

cartupdate에서는 정상으로 나오는데

 

ajax.action.php에서는 정반대로 나오네요 이게 무슨일인가요?

이 질문에 댓글 쓰기 :

답변 1

자문자답입니다

 

$sql = " INSERT INTO {$g5['g5_shop_cart_table']}
                            ( od_id, mb_id, it_id, it_name, it_sc_type, it_sc_method, it_sc_price, it_sc_minimum, it_sc_qty, ct_status, ct_price, ct_point, ct_point_use, ct_stock_use, ct_option, ct_qty, ct_notax, io_id, io_type, io_price, ct_time, ct_ip, ct_send_cost, ct_direct, ct_select, ct_select_time, ct_reserve, ct_normal )
                        VALUES ";

 

에서 ct_reserve, ct_normal 순서를 바꿨더니 정상으로 나오네요

 

이 순서에 따라 바뀔 줄은 생각도 못했습니다

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 125,873
© SIRSOFT
현재 페이지 제일 처음으로