로 감싸면 됩니다. ^^* */ include "config/config.php"; include "count.php"; // www 가 없으면 http://다음에 www 를 붙인다. //echo $HTTP_HOST; exit; if(!ereg("www.",$HTTP_HOST)) { if($HTTP_HOST == '127.0.0.1') { } else { $wwwurl = "http://www.".$HTTP_HOST.$PHP_SELF; // header("location:$wwwurl"); } } include "head_tag.htm"; ?> 살아있는 지식의 신개념 쇼핑몰 툴크래프트

" ; } // today if(!$res=mysql_query("select uid , title, regdate from today ORDER by regdate DESC LIMIT 0,2")) { echo mysql_error(); exit; } while($row=mysql_fetch_array($res)) { $row[title] = stripslashes($row[title]); $row[title] = kstrcut($row[title],18,".."); $regdate=substr($row[regdate],0,10); $today_text .= ""; } /* 나중에 새로운 메인상품 가져오기를 위해서 주석처리(추후작업예정)*/ // 상품 진열하기 // 목재재단 서비스는 disp_type=2 인 것을 메인페이지에 표시한다. 2005. 08. 01 Chasy $sql = "select product_common.uid, name, refer from product_common, cut_category where disp_type = '2' and category = id LIMIT 0,6"; $stmt = mysql_query($sql); for($i=0; $col=mysql_fetch_row($stmt); $i++) { $uid_1[$i] = $col[0]; $name_1[$i] = kstrcut(stripslashes($col[1]),18,".."); $refer_1[$i] = $col[2]; $images_1[$i] = "../product_images/$uid_1[$i]S.jpg"; } // 상품 진열하기 (type=3) $sql = "select product_common.uid, name, refer from product_common, cut_category where disp_type = '3' and category = id LIMIT 0,6"; $stmt = mysql_query($sql); for($i=0; $col=mysql_fetch_row($stmt); $i++) { $uid_2a[$i] = $col[0]; $name_2a[$i] = kstrcut(stripslashes($col[1]),18,".."); $refer_2a[$i] = $col[2]; $images_2a[$i] = "../product_images/$uid_2a[$i]S.jpg"; } $remain = 6 - count($uid_2a); if ($remain > 0) { $sql = "select uid, name, sale_price from SH_product WHERE type = '3' LIMIT 0, $remain"; $stmt = mysql_query($sql); for($i=0; $col=mysql_fetch_row($stmt); $i++) { $uid_2[$i] = $col[0]; $name_2[$i] = kstrcut($col[1],18,".."); $price_2[$i] = number_format($col[2]); $images_2[$i] = "../product_images/$uid_2[$i]S.jpg"; } } // 상품 진열하기(목재재단 type=4) $sql = "select product_common.uid, name, refer from product_common, cut_category where disp_type = '4' and category = id LIMIT 0,12"; $stmt = mysql_query($sql); for($i=0; $col=mysql_fetch_row($stmt); $i++) { $uid_3a[$i] = $col[0]; $name_3a[$i] = kstrcut(stripslashes($col[1]),18,".."); $refer_3a[$i] = $col[2]; $images_3a[$i] = "../product_images/$uid_3a[$i]S.jpg"; } $remain = 18 - count($uid_3a); $sql = "select uid, name, sale_price from SH_product WHERE type = '4' LIMIT 0, $remain"; $stmt = mysql_query($sql); for($i=0; $col=mysql_fetch_row($stmt); $i++) { $uid_3[$i] = $col[0]; $name_3[$i] = kstrcut($col[1],18,".."); $price_3[$i] = number_format($col[2]); $images_3[$i] = "../product_images/$uid_3[$i]S.jpg"; } //솜씨자랑 $som_sql = "SELECT uid, user_file1, regdate FROM board_2 WHERE depth='A' ORDER BY regdate DESC, thread DESC, depth ASC LIMIT 0, 2"; $som_stmt = mysql_query($som_sql); for($i=0; $som_col = mysql_fetch_row($som_stmt); $i++) { $som_uid[$i] = $som_col[0]; $som_file[$i] = $som_col[1]; $thumbnailURL[$i] = ""; } ?>
$row[title]
$row[title]$regdate  
"; } ?>
$thumbnailURL[$i]
 
"; else if ($refer_1[$i] == 3) echo ""; else if ($refer_1[$i] == 4) echo ""; ?>
"; else if ($refer_1[$i] == 3) echo ""; else if ($refer_1[$i] == 4) echo ""; ?>
길이재단"; else if ($refer_1[$i] == 3) echo "판재치수재단"; else if ($refer_1[$i] == 4) echo "목취도재단"; ?>
"; else if ($refer_2a[$i] == 3) echo ""; else if ($refer_2a[$i] == 4) echo ""; ?>
"; else if ($refer_2a[$i] == 3) echo ""; else if ($refer_2a[$i] == 4) echo ""; ?>
길이재단"; else if ($refer_2a[$i] == 3) echo "판재치수재단"; else if ($refer_2a[$i] == 4) echo "목취도재단"; ?>


"); echo $td; ?> "); echo $td; ?>
"; else if ($refer_3a[$i] == 3) echo ""; else if ($refer_3a[$i] == 4) echo ""; ?>
"; else if ($refer_3a[$i] == 3) echo ""; else if ($refer_3a[$i] == 4) echo ""; ?>
길이재단"; else if ($refer_3a[$i] == 3) echo "판재치수재단"; else if ($refer_3a[$i] == 4) echo "목취도재단"; ?>