Parašė kesiukas· 2009 Gru. 27 13:12:21
#1
Sveiki va kokia panele:
openside("Pamokos zaidejui");
echo "<taašd height='70'>";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,77"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 20);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td></tr></table>";
closeside();
Ji daro, kad paneleje rodytu visus straipsnius. O as noriu paklausti, kaip is tokio kodo reikia padaryti, kad rodytu straipsnius iš tam tikros straipsniu kategorijos?????
Redagavo kesiukas· 2009 Gru. 27 13:12:35