include('/var/www/html/includes/mysql.inc'); include('/var/www/html/includes/session.inc'); include('/var/www/html/includes/globals.inc'); include("templates/oasistemplate.php"); $numsports=count($sportid); if( ($sportids > 0) && ($sportids < $numsports) ) { # do something } else { $sportids = 1; } $posar = array(); $color = 0; $hour = date(H); $ymd = date("Y-m-d", strtotime("-1 day")); $projectiondate = '2001'; $counter = 0; $html = "
ID | \n"; $html .= "Name | \n"; if( ($sportids != 3) && ($sportids != 2) && ($posid != 13) && ($posid != 14) ) $html .="Team | \n"; $html .="Symbol | \n"; #for( $x = 0; $x < $numrows; $x++ ) #{ #if($positionsstatsnames[$posid][$x] == "Total Games") #$positionsstatsnames[$posid][$x]="Games"; #if($positionsstatsnames[$posid][$x] == "Homeruns") #$positionsstatsnames[$posid][$x]="HRs"; #if($positionsstatsnames[$posid][$x] == "Power Play Goal") #$positionsstatsnames[$posid][$x]="PPG"; #if($positionsstatsnames[$posid][$x] == "Short Handed Goal") #$positionsstatsnames[$posid][$x]="SHG"; #$html.= "" . $positionsstatsnames[$posid][$x] . " | \n"; #} } $counter++; unset($statslist); foreach( $positionsstatslist[$posid] as $stats) { #if(!isset($statslist)) $statslist = "`$stats"; #else $statslist.= "`,`$stats"; } #$sql = "select $statslist` from " . $smallname . "stats" . $projectiondate . " where playerid=$plid"; $res = mysql_query($sql, $db); $projarray = mysql_fetch_array($res); $u++; if( $u == 3 ) { # die($sql); } if(!$color) { $bgcolor="#FFFFFF"; $color++; } else { $bgcolor="#EEEEEE"; $color = 0; } $html .= "
$plid | \n"; $html .= "$name | \n"; if(($sportids!=3) && ($sportids!=2) && ($posid!=13) && ($posid!=14)) $html.="$team | \n"; $html.="$symbol | \n"; for( $x = 0; $x < $numrows; $x++ ) { $html.= "" . $projarray[$positionsstatslist[$posid][$x]] . " | \n"; } } } $html .=<<
foreach($posar as $x)
{
if($positions[$x][fullname]!="NFL Defense")
$posidname = $positions[$x][fullname] . "s";
else
$posidname = $positions[$x][fullname];
$html .=<< |