미채택 완료

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

2020-09-03 (목) 18:04:27 1,811

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

     $ct_reserve = 1;

} else {

        $ct_normal = 1;

}

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

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

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

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

답변 1개

2020-09-03 (목) 18:06:35

자문자답입니다

$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 순서를 바꿨더니 정상으로 나오네요

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

답변을 작성하려면 로그인이 필요합니다.