<?php
$serverName = "ServerName";
$connectionInfo = array(
"Database" => "dnworld",
"UID" => "Username",
"PWD" => "Password"
);
// Connect to the SQL Server database
$conn = sqlsrv_connect($serverName, $connectionInfo);
// Prepare the SQL query
$sql = "SELECT TotalRank...