= 8) { $caid4 = substr($row['ca_id'],0,8); $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid4' "); $cate4 = $row2['ca_name']; } if (strlen($row['ca_id']) >= 6) { $caid3 = substr($row['ca_id'],0,6); $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid3' "); $cate3 = $row2['ca_name']; } if (strlen($row['ca_id']) >= 4) { $caid2 = substr($row['ca_id'],0,4); $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$caid2' "); $cate2 = $row2['ca_name']; } // 배송비계산 $delivery = get_item_sendcost2($row['it_id'], $row['it_price'], 1); // 상품이미지 $img_url = get_it_imageurl($row['it_id']); // 포인트 $it_point = get_item_point($row); $item_link = G5_SHOP_URL.'/item.php?it_id='.$row['it_id']; echo "\n{$row['it_id']}{$tab}{$row['it_name']}{$tab}{$row['it_price']}{$tab}{$item_link}{$tab}{$img_url}{$tab}{$cate1}{$tab}{$cate2}{$tab}{$cate3}{$tab}{$cate4}{$tab}{$row['it_model']}{$tab}{$row['it_brand']}{$tab}{$row['it_maker']}{$tab}{$row['it_origin']}{$tab}{$it_point}{$tab}{$delivery}"; } $content = ob_get_contents(); ob_end_clean(); echo $content; ?>