Şu satırda bir sorun var ama bir türlü göremiyorum;
echo "<li><a href='".$config["http_home_url"].$row['alt_name']."/".$row2['alt_name']." '>";
Buda kodun tamamı.
<div class="urbangreymenu">
<?php
if(!defined('DATALIFEENGINE')){
die( "Hacking attempt!" );
}
$sql = $db->query("select * from ".PREFIX."_category where parentid = '0'");
echo "";
while ($row = $db->get_row($sql)){
$id = $row['id'];
$isim = $row['name'];
$icon = $row['icon'];
$cat_icon = $config['http_home_url'] ."templates/" .$config['skin']."/images/caticon/$icon";
$makale_sayisi2 = $db->query("select category from ".PREFIX."_post where category = '$id'");
$makale_sayisi = $db->num_rows($makale_sayisi2);
echo "
<h3 class='headerbar'><a href='".$config["http_home_url"].$row['alt_name']."/' title='".$row['descr']."'>";
echo " {$isim}";
if($makale_sayisi=="0"){}else {echo " (".$makale_sayisi.")";}
echo "</a></h3>
<ul class='submenu'>";
//echo "<br>";
//alt kategori
$alt_kategori = $db->query("select * from ".PREFIX."_category where parentid = '$id'");
while ($row2 = $db->get_row($alt_kategori)){
$id_alt = $row2['id'];
$makale_sayisi_alt2 = $db->query("select * from ".PREFIX."_post where category = '$id_alt'");
$makale_sayisi_alt = $db->num_rows($makale_sayisi_alt2);
echo "<li><a href='".$config["http_home_url"].$row['alt_name']."/".$row2['alt_name']." '>";
echo $row2['name'];
echo "</li>";
}
echo "</ul>";
}
echo "</div>";
?>