{$row['firstname']} {$row['lastname']}

Position: {$row['position']}
Full Name: {$row['full_name']}
"; if (!$row['aka']){} else {echo "AKA: {$row['aka']}
";} echo " Nickname: {$row['nickname']}
Born: {$row['born']}
"; if (!$row['died']){} else {echo "Died: {$row['died']}
";} echo " Height: {$row['height']}
Weight: {$row['weight']}
High School: {$row['high_school']}
"; if (!$row['junior_college']){} else {echo "Junior College: {$row['junior_college']}
";} echo " College: {$row['college']}
Drafted: {$row['drafted']}
Jersey#: {$row['jersey']}

"; if (!$playedfor OR $playedfor == "current"){} else {echo "Played for the Lakers from {$playedfor}
";} if (!$row['hof']){} else {echo "Inducted to the Hall of Fame in {$row['hof']}
";} echo "

{$row['contents']}
"; $ilkid = $row['ilkid']; } echo "

Regular Season Stats


"; $color1 = "#ECECEC"; $color2 = "#FFFFFF"; $row_count = 0; $result = mysql_query("SELECT * FROM player_regular_season WHERE ilkid='$ilkid'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $row_color = ($row_count % 2) ? $color1 : $color2; $yearplusone =$row['year']+1; if ($row['pts'] > 0) {$ppg = number_format($row['pts']/$row['gp'],1); } else {$ppg = "0";} if ($row['fgm'] > 0) {$fgpct = str_replace("0.", ".", number_format($row['fgm']/$row['fga'],3));} else {$fgpct = "-";} if ($row['ftm'] > 0) {$ftpct = str_replace("0.", ".", number_format($row['ftm']/$row['fta'],3));} else {$ftpct = "-";} if ($row['tpm'] > 0) {$tppct = str_replace("0.", ".", number_format($row['tpm']/$row['tpa'],3));} else {$tppct = "-";} if ($row['reb'] > 0) {$rpg = number_format($row['reb']/$row['gp'],1); } else {$rpg = "0";} $team = $row['team']; echo ""; $row_count++; } $result = mysql_query("SELECT * FROM player_regular_season_career WHERE ilkid='$ilkid'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { if ($row['pts'] > 0) {$ppg = number_format($row['pts']/$row['gp'],1); } else {$ppg = "0";} if ($row['fgm'] > 0) {$fgpct = str_replace("0.", ".", number_format($row['fgm']/$row['fga'],3));} else {$fgpct = "-";} if ($row['ftm'] > 0) {$ftpct = str_replace("0.", ".", number_format($row['ftm']/$row['fta'],3));} else {$ftpct = "-";} if ($row['tpm'] > 0) {$tppct = str_replace("0.", ".", number_format($row['tpm']/$row['tpa'],3));} else {$tppct = "-";} if ($row['reb'] > 0) {$rpg = number_format($row['reb']/$row['gp'],1); } else {$rpg = "0";} echo ""; } echo "
YEAR TEAM G MIN FGM FGA PCT FTM FTA PCT 3PM 3PA PCT REB RPG AST PF STL TO BLK PTS PPG
{$yearplusone} "; if ($team == "MIE" OR $team == "LAL") {echo "{$row['team']}";} else {echo "{$row['team']}";} echo " {$row['gp']} {$row['minutes']} {$row['fgm']} {$row['fga']} $fgpct {$row['ftm']} {$row['fta']} $ftpct {$row['tpm']} {$row['tpa']} $tppct {$row['reb']} $rpg {$row['asts']} {$row['pf']} {$row['stl']} {$row['turnover']} {$row['blk']} {$row['pts']} $ppg
"; if ($row['leag'] == "A") {echo "CAREER ABA";} else {echo "CAREER";} echo " {$row['gp']} {$row['minutes']} {$row['fgm']} {$row['fga']} $fgpct {$row['ftm']} {$row['fta']} $ftpct {$row['tpm']} {$row['tpa']} $tppct {$row['reb']} $rpg {$row['asts']} {$row['pf']} {$row['stl']} {$row['turnover']} {$row['blk']} {$row['pts']} $ppg

"; echo "

Playoff Stats


"; $color1 = "#ECECEC"; $color2 = "#FFFFFF"; $row_count = 0; $result = mysql_query("SELECT * FROM player_playoffs WHERE ilkid='$ilkid'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $row_color = ($row_count % 2) ? $color1 : $color2; $yearplusone =$row['year']+1; if ($row['pts'] > 0) {$ppg = number_format($row['pts']/$row['gp'],1); } else {$ppg = "0";} if ($row['fgm'] > 0) {$fgpct = str_replace("0.", ".", number_format($row['fgm']/$row['fga'],3));} else {$fgpct = "-";} if ($row['ftm'] > 0) {$ftpct = str_replace("0.", ".", number_format($row['ftm']/$row['fta'],3));} else {$ftpct = "-";} if ($row['tpm'] > 0) {$tppct = str_replace("0.", ".", number_format($row['tpm']/$row['tpa'],3));} else {$tppct = "-";} if ($row['reb'] > 0) {$rpg = number_format($row['reb']/$row['gp'],1); } else {$rpg = "0";} $team = $row['team']; echo ""; $row_count++; } $result = mysql_query("SELECT * FROM player_playoffs_career WHERE ilkid='$ilkid'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { if ($row['pts'] > 0) {$ppg = number_format($row['pts']/$row['gp'],1); } else {$ppg = "0";} if ($row['fgm'] > 0) {$fgpct = str_replace("0.", ".", number_format($row['fgm']/$row['fga'],3));} else {$fgpct = "-";} if ($row['ftm'] > 0) {$ftpct = str_replace("0.", ".", number_format($row['ftm']/$row['fta'],3));} else {$ftpct = "-";} if ($row['tpm'] > 0) {$tppct = str_replace("0.", ".", number_format($row['tpm']/$row['tpa'],3));} else {$tppct = "-";} if ($row['reb'] > 0) {$rpg = number_format($row['reb']/$row['gp'],1); } else {$rpg = "0";} echo ""; } echo "
YEAR TEAM G MIN FGM FGA PCT FTM FTA PCT 3PM 3PA PCT REB RPG AST PF STL TO BLK PTS PPG
{$yearplusone} "; if ($team == "MIE" OR $team == "LAL") {echo "{$row['team']}";} else {echo "{$row['team']}";} echo " {$row['gp']} {$row['minutes']} {$row['fgm']} {$row['fga']} $fgpct {$row['ftm']} {$row['fta']} $ftpct {$row['tpm']} {$row['tpa']} $tppct {$row['reb']} $rpg {$row['asts']} {$row['pf']} {$row['stl']} {$row['turnover']} {$row['blk']} {$row['pts']} $ppg
"; if ($row['leag'] == "A") {echo "CAREER ABA";} else {echo "CAREER";} echo " {$row['gp']} {$row['minutes']} {$row['fgm']} {$row['fga']} $fgpct {$row['ftm']} {$row['fta']} $ftpct {$row['tpm']} {$row['tpa']} $tppct {$row['reb']} $rpg {$row['asts']} {$row['pf']} {$row['stl']} {$row['turnover']} {$row['blk']} {$row['pts']} $ppg

"; ?>