$kontrol = $db->get_var("Select count(*) from et_products Where category = '".safe($_GET['c'])."' ");
if( $kontrol > 0 ) {
$oku = $db->get_results("Select * from et_products Where category = '".safe($_GET['c'])."' and product_active = 1 Order by product_sort ASC");
$a = 0;
?>
foreach( $oku as $yaz ) { $a++; $urunimage = product_active_image($yaz->product_id); if( $a%4 == 0 ) { $ekle = 'class="last"'; } else { $ekle = ''; } ?>
-
FİYAT SORUNUZ
} ?>
} ?>
$kontrol2 = $db->get_var("Select count(*) from et_category Where cat_owner=".safe($_GET['c'])." ");
if( $kontrol2 > 0 ) {
$oku = $db->get_results("Select * from et_category Where cat_active = 1 and cat_owner=".safe($_GET['c'])." Order by cat_sort");
$a = 0;
?>
Kategoriler
foreach( $oku as $yaz ) { $a++; $urunimage = product_active_image($yaz->product_id); if( ($a%4 == 0) || $kontrol == $a ) { $ekle = 'class="last"'; } else { $ekle = ''; } ?>
-
} ?>
} ?>