openside("TOP 10 narių");
$result = dbquery(
"SELECT * FROM ".DB_PREFIX."users ORDER BY user_posts LIMIT 10");
$res = 0;
while ($data = dbarray($result)) {
$res++;
echo "$res. <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a><br>";
}
closeside();