"; #Green Star Image Path $star1=""; #Blue Star Image Path $star2=""; #Red Star Image Path $star3=""; #get the teamname if($leaguename=='MLB') { $mlbqry1=mysqli_query($link,"select team_name from mlb_teams where alias_teamname='$ateam' "); list($ateamname)=mysqli_fetch_array($mlbqry1); $mlbqry2=mysqli_query($link,"select team_name from mlb_teams where alias_teamname='$bteam' "); list($bteamname)=mysqli_fetch_array($mlbqry2); } elseif($leaguename=='NFL') { $ateamname=$ateam; $bteamname=$bteam; $nflqry1=mysqli_query($link,"select team_shortname from nfl_teams where team_name='$ateam' "); list($a1teamname)=mysqli_fetch_array($nflqry1); $nflqry2=mysqli_query($link,"select team_shortname from nfl_teams where team_name='$bteam' "); list($b1teamname)=mysqli_fetch_array($nflqry2); } else { $ateamname=$ateam; $bteamname=$bteam; } #-----Images Path $ateamname1=strtolower($ateamname); $bteamname1=strtolower($bteamname); $folder=strtolower($leaguename); if($leaguename=='CFL') { $in_folder=$folder.'_db3_images'; } else { $in_folder=$folder.'_images'; } $basepath='../atsdb2/'.$folder.'/'.$in_folder.'/'; if($leaguename=='CFL' || $leaguename=='NFL') { $img1=$basepath.$ateamname.'.gif'; $img2=$basepath.$bteamname.'.gif'; if($ateamname=='') $img1='dummy1.jpg'; if($bteamname=='') $img2='dummy1.jpg'; } else { $img1=$basepath.$ateamname1.'.gif'; $img2=$basepath.$bteamname1.'.gif'; if($ateamname1=='') $img1='dummy1.jpg'; if($bteamname1=='') $img2='dummy1.jpg'; } #-----For displaying Team Rank below Images $rankqry=mysqli_query($link,"select * from ats_averages where league_name='$leaguename' order by ratings desc"); $ranknum=mysqli_num_rows($rankqry); $count=$ranknum; $type=($count/3); $modoutput=($count%3); if($modoutput==0) { $top=$type; $middle=$type; $bottom=$type;} else { $a=intval($type); $top=$a; $middle=($a+$modoutput); $bottom=$a; } while($rankrow=mysqli_fetch_array($rankqry)) { $teams=$rankrow['teamname']; $rating=$rankrow['ratings']; $rank++; #TOP TEAMS ARRAY if($rank >0 &&$rank<($top+1)) { $grade='top'; $toprank[ ]=$rank; $topteams[ ]=strtoupper($teams); }#end if #MIDDLE TEAMS ARRAY if($rank>$top && $rank<($top+$middle+1)) { $grade='middle'; $midrank[ ]=$rank; $midteams[ ]=strtoupper($teams); } #BOTTOM TEAMS ARRAY if($rank>($top+$middle) &&$rank<($top+$middle+$bottom+1)) { $grade='bottom'; $botrank[ ]=$rank; $botteams[ ]=strtoupper($teams); }#end if }#end while if($leaguename=='MLB') { $rankteam1=strtoupper($ateam); $rankteam2=strtoupper($bteam); } elseif($leaguename=='NFL') { $rankteam1=strtoupper($a1teamname); $rankteam2=strtoupper($b1teamname); } else { $rankteam1=strtoupper($ateamname); $rankteam2=strtoupper($bteamname); } if(in_array($rankteam1,$topteams)) { $team1_rank=" ( Top Ranked Team ) ";} elseif(in_array($rankteam1,$midteams)) { $team1_rank=" ( Middle Ranked Team ) ";} elseif(in_array($rankteam1,$botteams)) { $team1_rank=" ( Bottom Ranked Team ) ";} if(in_array($rankteam2,$topteams)) { $team2_rank=" ( Top Ranked Team ) ";} elseif(in_array($rankteam2,$midteams)) { $team2_rank=" ( Middle Ranked Team ) ";} elseif(in_array($rankteam2,$botteams)) { $team2_rank=" ( Bottom Ranked Team ) ";} $sel_league=mysqli_query($link,"select league_no from ats_league1 where league_name='$leaguename'"); list($lno)=mysqli_fetch_array($sel_league); $leaguename1=strtolower($leaguename); $table=$leaguename1.'_teams'; $road_side=""; $home_side=""; $over_disp=""; $linetotal_qry=mysqli_query($link,"select * from new_asp_schedule where game_date = '$newdate' and league_no='$lno' and game_no1='$newteam1_gameno' and game_no2='$newteam2_gameno'"); while($row=mysqli_fetch_array($linetotal_qry)) { $team1_spread=$row['team1_spread']; $team2_spread=$row['team2_spread']; $team1_ML=$row['team1_ML']; $team2_ML=$row['team2_ML']; $game_total=$row['game_total']; if($lno=='5' || $lno=='7') { $road_side=$team1_ML; $home_side=$team2_ML; $over_disp=$game_total; } else { $road_side=$team1_spread; $home_side=$team2_spread; $over_disp=$game_total; } } ?>
Head to head :-

The head to head stats part provides sports betting stats for against the spread gamblers who are looking for past head to head history between two teams who are facing each other in their next upcoming game. Besides, it provides betting stats such as the offense and defensive averages that are unique for point spread players seeking numbers reflecting the point spread and not general sports stats. Furthermore, when you click on a against the spread (ATS), straight up (SU) or OVER/UNDER (O/U) record, you will come across a pop up browser which will give you the past game scores and results of that exact situation and/or games.


LEAGUE:

 
O/U:
Pitcher :()

Vs.

Date:
Time:

 
O/U:
Pitcher :()

Star System : 35% or lower =  60%-79%=    80%-100%=

Navigation : Head To Head | ATS Matchups | Team Trends | Super Stats| Quick Stats | Smart Stats | Raymondreport| SOS

You Are Here HEAD TO HEAD MATCHUPS REPORT

"; $stats_qry1=mysqli_query($link,"select * from h2hrandom_queries where league_no='$lno' and game_date between '$startdate' and '$enddate' and (team_a='$newteam1_id' and game_number='$newteam1_gameno') order by random_id desc limit 10 "); $snum1=mysqli_num_rows($stats_qry1); //echo "snum1=$snum1
"; if(!$snum1) { ?>
Trends System
Trends Not Found

Team Trends
Team Trends Not Found

Team System Trends
0 #--for red star=> 1 #--for green star=> 2 #--for blue star=> 3 switch($ats_stars) { case '0': $ats_star=""; break; case '1': $ats_star=$star3; break; case '2': $ats_star=$star1; break; case '3': $ats_star=$star2; break; } switch($su_stars) { case '0': $su_star=""; break; case '1': $su_star=$star3; break; case '2': $su_star=$star1; break; case '3': $su_star=$star2; break; } switch($ou_stars) { case '0': $ou_star=""; break; case '1': $ou_star=$star3; break; case '2': $ou_star=$star1; break; case '3': $ou_star=$star2; break; } /*------End of new code to chk star----------*/ $count_sum1=$stats_row1['count_sum']; $count_sum1=trim($count_sum1); $csum1=explode("~",$count_sum1); $ats_csum1=$csum1[0]; $su_csum1=$csum1[1]; $ou_csum1=$csum1[2]; #-----Check if the sum of w-l-t records is less than 3 then dont show it on userside if($su_csum1 >=3) { ?> =10) {?> =10) else {?> =10) }#-if($league!='MLB') #-----SUWinner if($su_csum1 >=10) { ?> =10) else { ?> =10) #-----Over/Under if($over_under1=='0-0-0') { ?> =10) { ?> =10) else { ?> =10) } ?> =3) }#end while ?>
Team Trends Team Trends
ATS SU O/U
Description Win-Loss-Push Win-Loss-Push Over-Under-Push
Click on description to see Predictions on next game Click on records Click on records Click on records


Trends System
Trends Not Found
Team Trends
Team Trends Not Found
Team System Trends
0 #--for red star=> 1 #--for green star=> 2 #--for blue star=> 3 switch($ats_stars2) { case '0': $ats_star2=""; break; case '1': $ats_star2=$star3; break; case '2': $ats_star2=$star1; break; case '3': $ats_star2=$star2; break; } switch($su_stars2) { case '0': $su_star2=""; break; case '1': $su_star2=$star3; break; case '2': $su_star2=$star1; break; case '3': $su_star2=$star2; break; } switch($ou_stars2) { case '0': $ou_star2=""; break; case '1': $ou_star2=$star3; break; case '2': $ou_star2=$star1; break; case '3': $ou_star2=$star2; break; } /*------End of new code to chk star----------*/ $count_sum2=$stats_row2['count_sum']; $count_sum2=trim($count_sum2); $csum2=explode("~",$count_sum2); $ats_csum2=$csum2[0]; $su_csum2=$csum2[1]; $ou_csum2=$csum2[2]; #-----Check if the sum of w-l-t records is less than 3 then dont show it on userside if($su_csum2 >=3) { ?> =10) { ?> =10) else { ?> =10) }#if($league!='MLB') #-----SUWinner if($su_csum2 >=10) { ?> =10) else { ?> =10) #-----Over/Under if($over_under2=='0-0-0') { ?> =10) { ?> =10) else { ?> =10) } ?> =3) }#end while ?>
Team Trends Team Trends
ATS SU O/U
Description Win-Loss-Push Win-Loss-Push Over-Under-Push
Click on description to see Predictions on next game Click on records Click on records Click on records


TEAM: () TEAM:
  Offensive Stats Defensive Stats
All Games Avg
Home Games Avg
Road Games Avg
Last 3 Games Avg
Last 5 Games Avg
Last 10 Games Avg
vs. Division Games Avg
vs. Conference Games Avg
vs. Non Conference Games Avg
vs. Top Ranked Games Avg
vs. Middle Ranked Games Avg
vs. Bottom Ranked Games Avg
After a Win Games Avg
After a Lost Games Avg
After a SU Road Win Games Avg
After a SU Road Lost Games Avg
After a SU Home Win Games Avg
After a SU Home Lost Games Avg
After an Over Games Avg
After an Under Games Avg
After a Push Games Avg
After 0 day off Avg
After 1 day off Avg
After 2 day off Avg
After 3 day off Avg
After 4 or more days off Avg
TEAM: () TEAM:
  Offensive Stats Defensive Stats
All Games Avg
Home Games Avg
Road Games Avg
Last 3 Games Avg
Last 5 Games Avg
Last 10 Games Avg
vs. Division Games Avg
vs. Conference Games Avg
vs. Non Conference Games Avg
vs. Top Ranked Games Avg
vs. Middle Ranked Games Avg
vs. Bottom Ranked Games Avg
After a Win Games Avg
After a Lost Games Avg
After a SU Road Win Games Avg
After a SU Road Lost Games Avg
After a SU Home Win Games Avg
After a SU Home Lost Games Avg
After an Over Games Avg
After an Under Games Avg
After a Push Games Avg
After 0 day off Avg
After 1 day off Avg
After 2 day off Avg
After 3 day off Avg
After 4 or more days off Avg