모델 입력정보 를 관리자 주문내역수정 란에 노출...

모델 입력정보 를 관리자 주문내역수정 란에 노출...

QA

모델 입력정보 를 관리자 주문내역수정 란에 노출...

본문

안녕하세요?

모델입력란에 숫자 정보를 관리자 주문내역수정 란에
노출하려 합니다.

<?php echo $it['it_model']; ?>

잘 안되네요!

이 질문에 댓글 쓰기 :

답변 5

에디터 못 쓰는 쪽에 적으니 약간 설명이 부족했나 봅니다.

sql select에서 it_model 추가하세요.

 

adm/shop_admin/orderform.php에 보면
    <div class="tbl_head01 tbl_wrap">
        <table>
        <caption>주문 상품 목록</caption>
...
        $chk_cnt = 0;
        for($i=0; $row=sql_fetch_array($result); $i++) {
            // 상품이미지
            $image = get_it_image($row['it_id'], 50, 50);

            // 상품의 옵션정보
            $sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price,it_model  from {$g5['g5_shop_cart_table']}
                        where od_id = '{$od['od_id']}'
                          and it_id = '{$row['it_id']}'
                        order by io_type asc, ct_id asc ";
            $res = sql_query($sql);
            $rowspan = sql_num_rows($res);

<?php echo $row['it_model']; ?>

thumb-460749955_1620454382.7835_730x353.jpg

 

표시한 곳에 뽑아 내려 합니다.

상위 소스 들을 넣어봐도 안됩니다.

adm/shop_admin/orderform.php에 보면
    <div class="tbl_head01 tbl_wrap">
        <table>
        <caption>주문 상품 목록</caption>
...
        $chk_cnt = 0;
        for($i=0; $row=sql_fetch_array($result); $i++) {
            // 상품이미지
            $image = get_it_image($row['it_id'], 50, 50);

            // 상품의 옵션정보
            $sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price,

it_model 추가하세요.

                        from {$g5['g5_shop_cart_table']}
                        where od_id = '{$od['od_id']}'
                          and it_id = '{$row['it_id']}'
                        order by io_type asc, ct_id asc ";
            $res = sql_query($sql);
            $rowspan = sql_num_rows($res);

엑스엠엘님 정말 감사합니다
바로바로 답변도 해주시고 수고했습니다.
...................................

 $sql = " select ct_id, mb_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price, pt_msg1, pt_msg2, pt_msg3, it_model
                        from {$g5['g5_shop_cart_table']}
                        where od_id = '{$od['od_id']}'
                         and it_id = '{$row['it_id']}'
                        order by io_type asc, ct_id asc ";
            $res = sql_query($sql);

            $rowspan = sql_num_rows($res);

...................................

그런데

sql select에 추가하니 - 애러가 나네요.

앗, 테이블 명을 잘못 봤군요.

 $sql = " select a.ct_id, a.mb_id, a.it_id, a.ct_price, a.ct_point, a.ct_qty, a.ct_option, a.ct_status, a.cp_price, a.ct_stock_use, a.ct_point_use, a.ct_send_cost, a.io_type, a.io_price, a.pt_msg1, a.pt_msg2, a.pt_msg3,

b.it_model
                        from {$g5['g5_shop_cart_table']} a
 inner join {$g5['g5_shop_item_table']} b on a.it_id=b.it_id
                        where a.od_id = '{$od['od_id']}'
                        and a.it_id = '{$row['it_id']}'
                        order by a.io_type asc, a.ct_id asc ";

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

회원로그인

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