-
/*
if(in_array($_GET['id'] , array(84,83,8130,82) ))
{
echo "";
}
*/
$querySetting = "SELECT * FROM `ice_value_header` WHERE `name` IN (SELECT `title` FROM `ice_nav` WHERE `id` = ".$_GET['id'].")";
$resultSetting = $mysqli->query($querySetting);
$rowSetting = $resultSetting->fetch_assoc();
$numSetting = $resultSetting->num_rows;
if($numSetting >0)
{
$settingHeader = $rowSetting['id_header'];
$settingId = $rowSetting['id'];
}
else
{
$settingHeader=0;
$settingId = 0;
}
$queryItemWithMoreInfo = "SELECT `id_item` FROM `ice_moreinfo` WHERE `id_header` = ".$settingHeader." and `title` = ".$settingId;
$queryFilterItem = "Select * FROM `ice_item` WHERE `id_nav` IN (SELECT `id` FROM `ice_nav` Where `parent` = ".$_GET['id'].") or `id_nav` = ".$_GET['id']." or `id` IN (".$queryItemWithMoreInfo.")";
$resultFilterItem = $mysqli->query($queryFilterItem);
//echo "count ".mysql_num_rows($resultFilterItem);
if($resultFilterItem->num_rows > 0 )
{
while($rowFilterItem = $resultFilterItem->fetch_assoc()){
echo goodsItem($rowFilterItem,$kurs);
}
}
?>