<html>
<body bgcolor="#FFFFFF" text="#000000">
<?php if (isset($_POST["submit"])) {
$db=mysql_connect("localhost", "user name","password");
mysql_select_db("database",$db);
$sql = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos','$name','$team','$pts','$fgm','$fga','$threepm','$threepa','$ftm','$fta','$oreb','$dreb','$reb','$blocks','$steals','$assist')";
$sql1 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos1','$name1','$team1','$pts1','$fgm1','$fga1','$threepm1','$threepa1','$ftm1','$fta1','$oreb1','$dreb1','$reb1','$blocks1','$steals1','$assist1')";
$sql2 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos2','$name2','$team2','$pts2','$fgm2','$fga2','$threepm2','$threepa2','$ftm2','$fta2','$oreb2','$dreb2','$reb2','$blocks2','$steals2','$assist2')";
$sql3 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos3','$name3','$team3','$pts3','$fgm3','$fga3','$threepm3','$threepa3','$ftm3','$fta3','$oreb3','$dreb3','$reb3','$blocks3','$steals3','$assist3')";
$sql4 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos4','$name4','$team4','$pts4','$fgm4','$fga4','$threepm4','$threepa4','$ftm4','$fta4','$oreb4','$dreb4','$reb4','$blocks4','$steals4','$assist4')";
$sql5 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos5','$name5','$team5','$pts5','$fgm5','$fga5','$threepm5','$threepa5','$ftm5','$fta5','$oreb5','$dreb5','$reb5','$blocks5','$steals5','$assist5')";
$sql6 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos6','$name6','$team6','$pts6','$fgm6','$fga6','$threepm6','$threepa6','$ftm6','$fta6','$oreb6','$dreb6','$reb6','$blocks6','$steals6','$assist6')";
$sql7 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos7','$name7','$team7','$pts7','$fgm7','$fga7','$threepm7','$threepa7','$ftm7','$fta7','$oreb7','$dreb7','$reb7','$blocks7','$steals7','$assist7')";
$sql8 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos8','$name8','$team8','$pts8','$fgm8','$fga8','$threepm8','$threepa8','$ftm8','$fta8','$oreb8','$dreb8','$reb8','$blocks8','$steals8','$assist8')";
$sql9 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos9','$name9','$team9','$pts9','$fgm9','$fga9','$threepm9','$threepa9','$ftm9','$fta9','$oreb9','$dreb9','$reb9','$blocks9','$steals9','$assist8')";
$sql10 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos10','$name10','$team10','$pts10','$fgm10','$fga10','$3pm10','$3pa10','$ftm10','$fta10','$oreb10','$dreb10','$reb10','$blocks10','$steals10','$assist11')";
$sql11 = "INSERT INTO stats (pos, name, team, pts, fgm, fga, threepm, threepa, ftm, fta, orebounds, drebounds, rebounds, blocks, steals, assist) VALUES ('$pos11','$name11','$team11','$pts11','$fgm11','$fga11','$3pm11','$3pa11','$ftm11','$fta11','$oreb11','$dreb11','$reb11','$blocks11','$steals11','$assist11')";
$result = mysql_query($sql);
$result = mysql_query($sql1);
$result = mysql_query($sql2);
$result = mysql_query($sql3);
$result = mysql_query($sql4);
$result = mysql_query($sql5);
$result = mysql_query($sql6);
$result = mysql_query($sql7);
$result = mysql_query($sql8);
$result = mysql_query($sql9);
$result = mysql_query($sql10);
$result = mysql_query($sql11);
echo "Thank You!.\n";
}
else {
?>
<form method="post" action="<?php echo $PHP_SELF?>">