Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl dainų top 100 panelės

Parašė Bucis· 2010 Lie. 31 21:07:32
#2

<strong>
<?php
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 100");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 60);
echo "<tr>\n<td class='small'><img src='http://saita.yt.lt/images/music-icon.png'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
\n<td class='small2'>".$data['download_count']."</td></tr>\n";}




echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
?>
</strong>




Bandyk ;)