모델 입력정보 를 관리자 주문내역수정 란에 노출...
본문
안녕하세요?
모델입력란에 숫자 정보를 관리자 주문내역수정 란에
노출하려 합니다.
<?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']; ?>
관리자 주문내역수정 란"이란 곳이
/adm/shop_admin/orderform.php
이 페이지인가요?
원하시는 곳을 그림으로 표현해 주세요.
엑스엠엘님 정말 감사합니다
바로바로 답변도 해주시고 수고했습니다.
...................................
$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에 추가하니 - 애러가 나네요.