상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격 $str = ""; $sql = " select * from {$g5['g5_shop_item_table']} where it_use = '1' order by ca_id "; $result = sql_query($sql); for ($i=0; $row=mysql_fetch_array($result); $i++) { $image = get_it_imageurl($row['it_id']); $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); if (strlen($row['ca_id']) >= 4) $row3 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); if (strlen($row['ca_id']) >= 6) $row4 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); // 재고검사해서 없으면 상품가격을 0 으로 설정 $stock = get_it_stock_qty($row['it_id']); if ($stock <= 0) $row['it_price'] = 0; $str .= "

{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}"; $str .= "\n"; } echo "

" . $config['cf_title'] . " 입니다. 총 (".$i.") 건 입니다.\n"; echo $str; ?>