".$arrData[0][2]; } ?>

Product

Product <? if($cat_id_n){ echo " - ".$cat_id_n;} ?> "; $col=0; for($i=0; $i<$recCount; $i++){ $col=$col+1; $cat_id2=$arrData[$i][2]; if($col>3){ echo ""; $col=1; } if($arrData[$i][5]){ $path_img = $arrData[$i][5]; }else{ $path_img = "p.png"; } $p_id=$arrData[$i][0]; $sSql6 = "SELECT id"; $sSql6 .=" FROM sub_products WHERE p_id=$p_id and locked=0"; $result6 = openDb($sSql6); $recCount6 = mysql_affected_rows(); echo ""; } echo "
"; }else{ echo "
"; $r=0; } if($arrData[$i][3]){ $path_img = "product-img/".$arrData[$i][3]; }else{ $path_img = "product-img/p.png"; } ?>

"; echo "
"; if($arrData[$i][6]!=""){ if($recCount6!=0){ echo ""; echo ""; }else{ echo ""; echo ""; } }else{ echo ""; } echo "
"; if($arrData[$i][6]!=""){ if($recCount6!=0){ echo ""; echo $arrData[$i][3]; echo ""; }else{ echo ""; echo $arrData[$i][3]; echo ""; } }else{ if($recCount6!=0){ echo ""; echo $arrData[$i][3]; echo ""; }else{ echo $arrData[$i][3]; } } echo "
"; if($recCount==0){ echo "
ไม่มีสินค้า
"; } } if($cat_id==2){ $sSql = "SELECT cat_id, cat_id2, cat_name, cat_img"; $sSql .=" FROM cats WHERE cat_id2=$cat_id"; $result = openDb($sSql); $recCount = mysql_affected_rows(); if ($result){ $arrData = array(); while ($rows = mysql_fetch_array($result)) {$arrData[] = $rows;} }else{ return false; die(); } echo ""; $col=0; for($i=0; $i<$recCount; $i++){ $col=$col+1; $cat_id2=$arrData[$i][2]; if($col>3){ echo ""; $col=1; } if($arrData[$i][3]){ $path_img = $arrData[$i][3]; }else{ $path_img = "p.png"; } echo ""; } echo "
"; echo "
"; echo ""; echo "
"; echo ""; echo $arrData[$i][2]; echo ""; echo "
"; } ?>