query("select count(*) as cnt from codes where type='shopping' and level=1"); $dbconn->next_record(); $total = $dbconn->f("cnt"); if($total) : $dbconn->query("select code, code_name, code_desc from codes where type='shopping' and level=1"); $j=0; $dbconn2 = new cjDB; while($dbconn->next_record()) { $tmp_code = $dbconn->f("code")."-"; $dbconn2->query("select count(*) as cnt from shop where category like '$tmp_code%'"); if($dbconn2->next_record()) $goods_tot = $dbconn2->f("cnt"); else $goods_tot = 0; $code = $dbconn->f("code"); $code_desc = explode("//",$dbconn->f("code_desc")); $icon = explode(".",$code_desc[1]); $icon = ""; if($j%3 == 0) : ?>
f("code_name") ?> ()


최신 등록 리스트
사진 카테고리 물품 소개 가격 등록 날짜 조회수
query("select * from shop order by shop_id desc limit 12"); while($dbconn->next_record()) { if($dbconn->f("close") == 'n') { $shop_id = $dbconn->f(shop_id); $title_link = ""; $close_ment = ''; } else { $title_link = ''; $close_ment = '  [SOLD OUT]'; } $cat = $dbconn->f("category"); $price = number_format($dbconn->f("price")); if(eregi("[gif]|[jpg]",$dbconn->f("imagename"))) $show_image = ""; else $show_image = ""; ?>
   f("goods_name")?>    f("date")?>  f("count")?>