Parašė gintulys· 2010 Sau. 17 12:01:52
#2
openside("<center>Paskutiniai naujienos</center>");echo "<table cellpadding='0' cellspacing='0' width='250'><tr><td width='215' class=tbl1 >Pavadinimas</td></tr>";$result2 = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 5");while ($data2 = dbarray($result2)) {$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data2['news_cat']."' ");$data = dbarray($result);echo "<tr><td class=tbl1><img src='".THEME."images/bullet.gif' alt=''> ".$data['news_cat_name'].": <a href='news.php?readmore=".$data2['news_id']."'>".$data2['news_subject']."</a><br></td></tr>";}echo "</table>";closeside();
Redagavo gintulys· 2010 Sau. 17 12:01:07