Prize Challenge Leaders for the 2013 Wrangler National Finals Rodeo Fantasy Game (all results are unofficial)

Prize Challenge Leaders for the ".$league_name.""; print "\n"; print "\n"; for ($i=0;$i<$count;$i++) { list($teamleague_id, $league_id, $team_id, $name, $curr_total, $chmp_total, $curr_rank, $owner_name) = mysql_fetch_row ($query); $name = str_replace("\\","",$name); $estprts = explode(".",$curr_total); $estprts[0] = strrev($estprts[0]); $cnt = floor(strlen($estprts[0]) / 3); $z = 0; for($y=0;$y<=$cnt;$y++) { $icurr_total = $icurr_total.substr($estprts[0],$z,3); if ($z < strlen($estprts[0]) / 3) { $icurr_total = $icurr_total.","; } $z = $z + 3; } $icurr_total = $icurr_total.substr($estprts[0],$z); $icurr_total = strrev($icurr_total); if ($estprts[1] != "") { $icurr_total = $icurr_total.".".$estprts[1]; } $estprts = explode(".",$chmp_total); $estprts[0] = strrev($estprts[0]); $cnt = floor(strlen($estprts[0]) / 3); $z = 0; for($y=0;$y<=$cnt;$y++) { $ichmp_total = $ichmp_total.substr($estprts[0],$z,3); if ($z < strlen($estprts[0]) / 3) { $ichmp_total = $ichmp_total.","; } $z = $z + 3; } $ichmp_total = $ichmp_total.substr($estprts[0],$z); $ichmp_total = strrev($ichmp_total); if ($estprts[1] != "") { $ichmp_total = $ichmp_total.".".$estprts[1]; } $x = $i+1; print "\n"; $icurr_total = ""; $ichmp_total = ""; } print "
#Team NameCurrent TotalTop $ Winners
$x$name$".$icurr_total."$".$ichmp_total."
"; print "View more teams"; print "
"; } ?>

* All results are unofficial