Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia pagalbos...

Parašė Demonas· 2007 Gru. 27 19:12:44
#6

opentable("Kas naujo?");

$result = dbquery("SELECT * FROM ".$db_prefix."articles ORDER BY article_id DESC LIMIT 0,5");
echo "<center><b>Naujausi straipsniai</b></center>";
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
echo "<big><big><b><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>".$data['article_name']."</a></b></big></big><br>";
}
}
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
echo "<br><br><br><center><b>Naujausi siuntiniai</b></center>";
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
echo "<big><big><b><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".$data['download_title']."</a></b></big></big><br>";
}
}
closetable();