Файл: public_html/init/loadcats.php
Строк: 17
<?php
require('../classes/config.php');
include "../inc/db.php";
$db = new db();
$data = $db->query('SELECT * FROM kategorie_under2 WHERE bigid = "'.$_GET['get'].'"');
while($d = $db->fetch_assoc($data)){
$select = $db->query('SELECT id FROM produkte WHERE unterkategorie2 = "'.$d["id"].'" AND statuscode = "1"');
$zahl = mysql_num_rows($select);
print '<div style="float:left; clear:both; padding-bottom:2px; padding-left:5px;"><a href="javascript:void()" onclick="loadCompoments(''.$d["id"].'')" class="allb bpoint'.$d["id"].'">'.$d["name"].'</a> <font style="color:#666;">('.$zahl.')</font></div>';
}
?>