ÇöÀçÀ§Ä¡ : ¿Â¶óÀΰßÀû
cost=new Array(); "; while($ct=mysql_fetch_array($ct_db)){ if($ct[sc]=="All_sub_category"){ $categori=$ct[mc]; $where="where (mc='$ct[mc]') and (state!='1' and state!='2' and state!='3')"; } else{ $categori=$ct[sc]; $where="where (mc='$ct[mc]' and sc='$ct[sc]') and (state!='1' and state!='2' and state!='3')"; } echo"
$categori
"; $query="select * from products $where order by name"; $products_db=mysql_query($query); if (!$products_db){ $errNO = mysql_errno ($db_conn); $errMSG = mysql_error ($db_conn); print "DB Server Connect error
"; print "Error Code $errNO : $errMSG products_db"; exit; } $j=0; echo""; while($products=mysql_fetch_array($products_db)){ if(!$products[sc]){$products[sc]=$products[mc];} if($products[stock_app]=="yes"){ if($products[stock]>1){ print"
[$products[sc]] $products[name] - ".number_format($products[cost])."
"; echo""; $j=$j+1; } } else{ print"
[$products[sc]] $products[name] - ".number_format($products[cost])."
"; echo""; $j=$j+1; } } echo""; print"
ÇØ´ç Á¦Ç°À» ¼±ÅÃÇϼ¼¿ä.¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
"; echo"
°³
¿ø
"; echo""; $i=$i+1; } print ""; ?>
ÇÕ¡¡¡¡¡¡°è
¿ø
-
°ßÀû³»¿ëÀº Çö½Ã¼¼¿¡ µû¶ó °¡°Ý ¹øµ¿ÀÌ ÀÖÀ»¼ö ÀÖ½À´Ï´Ù.
- »ó±â °¡°ÝÀº Çö±Ý ÇÒÀΰ¡ ±âÁØÀÔ´Ï´Ù.