<?php echo $teamfn; ?> <?php echo $teamln; ?> Season Game Results (PF & PA)

= " . $firstseason . " "; if($usethisseasonf != "all"){ $posqueryb .= "AND gs.gSeason = '" . $usethisseason . "'"; } if($usethisseasonf == "all"){ $posqueryb .= "GROUP BY gSeason ORDER BY gs.gSeason ASC"; }else{ $posqueryb .= "ORDER BY gs.gWeek ASC"; } $posquery = mysql_query($posqueryb); ?> $row['awayteamscore']): $wlstatus = "win"; elseif($row['hometeamscore'] < $row['awayteamscore']): $wlstatus = "loss"; elseif($row['hometeamscore'] == $row['awayteamscore']): $wlstatus = "tie"; endif; endif; endif; if($hastatus == "a"): if($row['hometeamscore'] == '0' && $row['awayteamscore'] == '0'): $wlstatus = "up"; else: if($row['hometeamscore'] < $row['awayteamscore']): $wlstatus = "win"; elseif($row['hometeamscore'] > $row['awayteamscore']): $wlstatus = "loss"; elseif($row['hometeamscore'] == $row['awayteamscore']): $wlstatus = "tie"; endif; endif; endif; }else{ if($hastatus == "h"): $totalpointsfor = $totalpointsfor + $row['hometeamscore']; $totalpointsallowed = $totalpointsallowed + $row['awayteamscore']; endif; if($hastatus == "a"): $totalpointsfor = $totalpointsfor + $row['awayteamscore']; $totalpointsallowed = $totalpointsallowed + $row['hometeamscore']; endif; } if($usethisseasonf == "all"){ $weekbuilder .= '"Season '; $weekbuilder .= $row['gSeason']; $weekbuilder .= '",'; }else{ $weekbuilder .= '"Week '; $weekbuilder .= $counta; $weekbuilder .= ': VS '; $weekbuilder .= strtoupper($cleanoppteam); $weekbuilder .= '",'; } if($usethisseasonf != "all"){ if($hastatus == "h"): $databuildert .= $row['hometeamscore']; else: $databuildert .= $row['awayteamscore']; endif; if($hastatus == "a"): $databuildero .= $row['hometeamscore']; else: $databuildero .= $row['awayteamscore']; endif; }else{ $databuildert .= $totalpointsfor; $databuildero .= $totalpointsallowed; } $databuildert .= ','; $databuildero .= ','; ?>