$result = mysql_query("SELECT * FROM score ORDER BY points DESC");
$kelintas = 0;
while($row = mysql_fetch_array($result))
{
$kelintas++;
mysql_query("INSERT INTO users (kelintas)
VALUES ('$kelintas') WHERE username= '".$row['username']."'");
}
kelintas