- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
function _getConditionWithCategoryConj( $condition, $categoryID ) //fetch products from current category
{
$category_condition = "";
$q = db_query("select productID from ".
CATEGORIY_PRODUCT_TABLE." where categoryID=".(int)$categoryID);
$icounter = 0;
while( $product = db_fetch_row( $q ) )
{
if ( $icounter == 0 )
$category_condition .= " productID IN ('";
if ( $icounter > 0 )
$category_condition .= ", ";
$category_condition .= (int)$product[0];
$icounter++;
}
if ( $icounter>0 ) {
$category_condition .= "')";
}
shopcms.
нет слов больше.
Lure Of Chaos 01.03.2011 16:38 # 0
punishment 01.03.2011 22:13 # 0
Lure Of Chaos 01.03.2011 23:12 # 0
jfhs 25.08.2021 04:33 # 0