Parašė MadShort· 2011 Kov. 13 14:03:42
#1
Sveiki iskilo bedu su top 5 uploaderiais :)
KODAS:
openside("TOP-5 Uploaderiai");
$result = dbquery("SELECT d.download_user, u.user_id, u.user_name FROM ".$db_prefix."downloads d
LEFT JOIN ".DB_USERS." u ON d.download_user=u.user_id
GROUP BY download_user ORDER BY COUNT(d.download_id) DESC LIMIT 5");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl' border='0'>\n";
while($data = dbarray($result)) {
$num = dbcount("(download_user)", $db_prefix."downloads", "download_user='".$data['download_user']."' LIMIT 5");
echo "<tr><td class='small' align='left'><img src='".THEME."images/bullet.gif' alt='image' /><span> </span><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."'>".$data['user_name']."</a></td>
<td class='small' align='right'>".$num." failø</td></tr>\n";
}
echo "</table>\n";
} else { echo "<center>Nëra</center>\n"; }
closeside()
Ir man meta sita eror : Parse error: syntax error, unexpected $end in /usr/home/www1/ftp/Ruliss/administration/panel_editor.php(128) : eval()'d code on line 57