include('admin/inc/123456.php'); include('admin/inc/mysql.php'); include('admin/inc/functions.php'); include('inc/proverko.php'); if (isset($_GET['cat'])) {$cat=htmlspecialchars(strip_tags(trim($_GET['cat'])),ENT_QUOTES);} else {$cat=0;} $query_cat1=mysql_query("SELECT name,level,parent_id FROM `category` WHERE `id` = '$cat' and `level` <> '-1' LIMIT 1 ;",$dbcnx); $arr_rez_cat1=array(); while ($rez_cat1=mysql_fetch_array($query_cat1, MYSQL_NUM)) { $arr_rez_cat1[]=$rez_cat1; } $count_cat1=count($arr_rez_cat1); if ($count_cat1==0) { header("Location: ".$URL."index.php"); } else { $name_cat1=$arr_rez_cat1[0][0]; $level_cat1=$arr_rez_cat1[0][1]; $parent_cat1=$arr_rez_cat1[0][2]; $query_cat1=mysql_query("UPDATE `category` SET `products` = `products`+1 WHERE `id` ='".$cat."' LIMIT 1 ;",$dbcnx); } //одиночные ссылки link по id $query_melkie=mysql_query("SELECT link,name FROM `text` WHERE `id` in (7,10,11) ORDER BY `id` ASC ;",$dbcnx); $arr_rez_melkie=array(); while ($rez_melkie=mysql_fetch_array($query_melkie, MYSQL_NUM)) { $arr_rez_melkie[]=$rez_melkie; } ?>