$result = dbquery("SELECT * FROM ".$db_prefix."users_points ORDER BY points_total DESC LIMIT 10");
openside('TOP 10 vartotojų');
echo "<table class='lentele' align='center'>
<td align='left'><b>Nick</b></td>
<td align='left'><b>Taškų</b></td>
";
while ( $row = dbarray($result))
{
echo "<tr>";
echo "<td>" . $row['owner_name'] . "</td>";
echo "<td>" . $row['points_total'] . "</td>";
echo "</tr>";
}
echo "</table>";
closeside();