query("select count(*) as cnt from codes where type='auction' and level=1"); $dbconn->next_record(); $total = $dbconn->f("cnt"); if($total) : $dbconn->query("select code, code_name, code_desc from codes where type='auction' and level=1"); $j=0; $dbconn2 = new cjDB; while($dbconn->next_record()) { $tmp_code = $dbconn->f("code")."-"; $dbconn2->query("select count(*) as cnt from goods 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 goods_id, goods_guide, goods_name, close, price, date, count, imagename from goods order by goods_id desc limit 12"); while($dbconn->next_record()) { if($dbconn->f("close") == 'n') { $goods_id = $dbconn->f(goods_id); $title_link = ""; $close_ment = ''; } else { $title_link = ''; $close_ment = '  [마감된물품]'; } switch($dbconn->f("goods_guide")) { case("sell") : $goods_guide = "팔고!"; break; case("free") : $goods_guide = "무료!"; break; case("exchange") : $goods_guide = "교환!"; break; } if($dbconn->f("price") == 0) $price = "무료"; else $price = number_format($dbconn->f("price")); if(eregi("[gif]|[jpg]",$dbconn->f("imagename"))) $show_image = ""; else $show_image = ""; ?>
사진 구분 물품 소개 희망 가격 등록 날짜 조회수
query("select goods_id, goods_guide, goods_name, close, price, date, count, imagename from goods order by goods_id desc limit 12"); while($dbconn->next_record()) { if($dbconn->f("close") == 'n') { $goods_id = $dbconn->f(goods_id); $title_link = ""; $close_ment = ''; } else { $title_link = ''; $close_ment = '  [마감된물품]'; } switch($dbconn->f("goods_guide")) { case("sell") : $goods_guide = "팔고!"; break; case("free") : $goods_guide = "무료!"; break; case("exchange") : $goods_guide = "교환!"; break; } if($dbconn->f("price") == 0) $price = "무료"; else $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")?>