Parašė ironixas· 2011 Geg. 15 12:05:29
#7
dLc parašė:
Kaip tylesburg sake:
openside("Naujienų kategorijos");
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE cat='KAZKAS' ORDER BY news_cat_name");
while ($data = dbarray($result)) {
$rows = dbcount("(news_id)", "fusion_news", "news_cat='".$data['news_cat_id']."' AND ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
echo "<a href='".BASEDIR."news_cats.php?cat_id=".$data['news_cat_id']."' lass='side'><img src='".$settings['siteurl']."images/news_cats/".$data['news_cat_image']."' border='0' width='25' height='25' />".$data['news_cat_name']."[$rows]</a><br />";
}
closeside()
Tai kur
KAZKAS, reikia parašyti kategorijos pavadinimą???