I didn't know you could use a for() loop that way.
I would have written the code a little differently, to wit:
$select = "SELECT first_name, last_name, picture, user_points
FROM .......
WHERE ...
ORDER BY used_points DESC";
//make a database connection, then...
$result=mysql_query($select)
or die("Select from XYZ table had errors - ".mysql_error());
//assuming your connection was named $connection
mysql_close($connection);
while($row=msyql_fetch_array($result,MYSQL_ASSOC))
{
extract ($row);
//do whatever you want to do with $first_name, $last_name, $picture, $user_points
}
To each their own flavors...