#252 불필요한 쿼리 삭제

This commit is contained in:
chicpro
2013-07-15 17:09:53 +09:00
parent 09438a26fd
commit 1b3dfe5b9e
2 changed files with 1 additions and 12 deletions

View File

@ -5,17 +5,6 @@ if(empty($rq)) {
$sql = " select * from {$g4['shop_request_table']} where rq_id = '$rq_id' ";
$rq = sql_fetch($sql);
}
if(!$rq['rq_id'])
alert('요청 자료가 없습니다.');
$item = explode(',', $rq['ct_id']);
if(!count($item))
alert($type.'요청된 상품이 없습니다.');
if(empty($od)) {
$sql = " select * from {$g4['shop_order_table']} where od_id = '{$rq['od_id']}' ";
$od = sql_fetch($sql);
}
$sql = " select ct_id, it_id, it_name, ct_option, ct_price, ct_qty, io_type, io_price, ct_status
from {$g4['shop_cart_table']}

View File

@ -175,7 +175,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
<input type="hidden" name="rq_id[<?php echo $i; ?>]" value="<?php echo $row['rq_id']; ?>">
</td>
<td><?php echo $type; ?></td>
<td><a href="<?php echo $order_href; ?>"><?php echo $row['od_id']; ?></a></td>
<td><?php echo $row['od_id']; ?></td>
<td><?php echo number_format($row['od_temp_amount']); ?></td>
<td><?php echo $row['od_name']; ?></td>
<td><?php echo $it_name; ?></td>