Update rank.php