Parašė bad_user· 2008 Rugs. 13 13:09:24
#3
opensidex("Meniu");
echo '<div style="font-size:15px"> <b><font color="green">Sios dienos meniu:</font></b></a></div>";
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats ORDER BY news_cat_name");
while ($data = dbarray($result)) {
$rows = dbcount("(news_id)", "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 "<p><img src="/images/kopustas.gif"> <a href="/news_cats.php?cat_id=1">Kopustu sriuba [$rows]</a>';
}
closesidex();
Jei teisingai supratau.