테스트 사이트 - 개발 중인 베타 버전입니다

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

팅크 4년 전 조회 2,424

안녕하세요?

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

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

잘 안되네요!

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

답변 5개

채택된 답변
+20 포인트

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

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);

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

팅크
4년 전
소스를 잘 못 보았네요!
(이제보니) 보이네요.
감사 했습니다.

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

4년 전

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

 $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에 추가하니 - 애러가 나네요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

엑스엠엘
4년 전
앗, 테이블 명을 잘못 봤군요.

$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 ";

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

4년 전

 

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

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

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

엑스엠엘
4년 전
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);

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

관리자 주문내역수정 란"이란 곳이

/adm/shop_admin/orderform.php

이 페이지인가요?

원하시는 곳을 그림으로 표현해 주세요.

로그인 후 평가할 수 있습니다

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

4년 전

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

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

팅크
4년 전

고맙습니다.

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

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

로그인