Parašė avice· 2012 Sau. 9 21:01:35
Klaidų yra...
openside("Filmų top 15");
$qresult = dbquery("SELECT * FROM ".DB_NEWS." ORDER BY news_reads DESC LIMIT 0,15");
if(dbrows($qresult)!=0){
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td>";
while($data=dbarray($qresult)){
echo "<div style='width:267px;'>
<div style='float:left; width:89px; margin-left:0px; margin-bottom:5px;'>
<a href='/news.php?readmore=".$data['news_id']."'><center><img src='".IMAGES_N.$data['news_image']. "' width='85' height='125' /></center></a>
</div></div>\n";
}
echo "</td></tr></table>";
}else{
echo "<center>Filmų nėra.</center>";
}
closeside();