Added mysql_close($con) to all pages that perform SQL queries, to save resources. Removed unnecessary rank pages.