NCAA College Basketball Live Computer Rankings


[insert_php]

$title=’NCAA Basketball LIVE Rankings’;
include(‘db/dbmysqli.php’);
include_once ‘db/common.php’;
$month = date(“m”);
$month > ‘1’ && date(“m”) < '8' ? $year = date("Y")-1: $year = date("Y"); echo '


First time here? Click here to understand the methodology used by the AMSTS Computer Rankings.

Historic rankings are available here.

These rankings update live every 15 minutes from Noon to 2 AM Eastern Time during college basketball season. As teams score points in their game, their ranking will move up and down. As things happen in one game, other opponents may have their rankings affected as well!
‘;

$sql = “SELECT * from Live_NCAAB where Date=(select max(Date) from Live_NCAAB)
ORDER BY `Total Rank` ASC”;

$result=mysqli_query($link,$sql);

if($result = mysqli_query($link, $sql)){
if(mysqli_num_rows($result) > 0){

$getID = mysqli_fetch_assoc($result);

$date = $getID[‘Date’];
mysqli_data_seek($result, 0);
echo ‘

Live Rankings as of (‘; echo $date; echo’):

‘;

if(($_GET[‘League’])==”All”){
echo’

‘;
}

else{
}

echo ‘

‘;

while($row = mysqli_fetch_array($result)){

$f2=$row[‘Team’];
$f3=$row[‘Record’];
$f4=$row[‘Total Rating’];
$f7=$row[‘Win Rating’];
$f9=$row[‘Points Rating’];

$f2=utf8_encode($f2);
$f1=$row[‘Total Rank’];
$f5=$row[‘Last Week’];
$f6=$row[‘Difference’];
$f8=$row[‘Win Rank’];
$f10=$row[‘Points Rank’];

$f2=’‘.$f2.’‘;
echo ‘

‘;

echo ‘

‘;

$i++;
}

echo “

League Total Rank Team Record Overall Rating Last Week Difference Win Rating Win Rank Points Rating Points Rank
‘; echo $f1; echo ‘ ‘; echo $f2; echo ‘ ‘; echo $f3; echo ‘ ‘; echo $f4; echo ‘ ‘; echo $f5; echo ‘ ‘; echo $f6; echo ‘ ‘; echo $f7; echo ‘ ‘; echo $f8; echo ‘ ‘; echo $f9; echo ‘ ‘; echo $f10; echo ‘

“;
// Close result set
mysqli_free_result($result);
} else{
echo “No records matching your query were found.”;
}
} else{
echo “ERROR: Could not execute $sql. ” . mysqli_error($link);
}
[/insert_php]