Parašė jokaz· 2008 Spa. 19 19:10:47
#1
Sveiki, norejau paklausti gal kas turite panele, kurioje rodytu tarkim TOP10 Naujienu pagal ju ivertinima? :?
Parašė GangStahas· 2008 Spa. 19 19:10:21
#3
openside("PAVADINIMAS");
$result = dbquery("SELECT * FROM ".$db_prefix."news WHERE `news_cat`='20' ORDER BY news_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 90);
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' class='side'> ".$itemsubject."</a><br />\n";
}
} else {
echo "No News";
}
closeside();
Bandyk, jei viekia +10 duok Dėkui :P
Redagavo GangStahas· 2008 Spa. 19 19:10:42