Parašė Kižas· 2010 Rugp. 27 21:08:47
#43
openside("TOP uploader'iai");
$result = dbquery("SELECT user_name, user_id, count(user_id) AS download_count FROM ".$db_prefix."downloads
INNER JOIN ".$db_prefix."users ON download_license=user_name GROUP BY download_license ORDER BY download_count DESC LIMIT 5");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
if(dbrows($result)!=0){
while($data=dbarray($result)){
echo "<tr><td class='small2' align='left'> <img src='/images/star.gif'>
<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$data[user_name]</a></td>
<td class='small2' align='right'>".$data['download_count']."</td></tr>";
}
} else echo "<tr><td align='center'>Nieko nera.</td></tr>";
echo "</table>";
closeside();
Tikiuosi padejau, jei taip
+10.