Codice PHP:
//inserimento falli e punti del giocatore (non funziona) 
$query "SELECT IDgiocatore FROM giocatore WHERE Nome_squadra='".$_GET['Squadra_casa']."'"
$result mysql_query($query$db); 
while (
$row mysql_fetch_array($result)) {
$row[IDgiocatore]; 
$query "INSERT INTO performance (IDpartita, IDgiocatore) VALUES ('".$_GET['IDpartita']."','$row[IDgiocatore]')";     
if (
mysql_query($query$db))
 echo 
"Il risultato è stato inserito correttamente per giocatore numero $row[IDgiocatore] 
"
; else echo "Errore durante l'inserimento giocatori
"
;
 }   
$query "SELECT IDgiocatore FROM performance WHERE IDpartita='".$_GET['IDpartita']."'"$result mysql_query($query$db); 
while (
$row mysql_fetch_array($result)) { 
$row[IDgiocatore]; 
$row[Marcature] =$_REQUEST['Marcature'];
$row[Falli] =$_REQUEST['Falli']; 
$query "UPDATE performance SET Marcature='$Marcature', Falli='$Falli' WHERE IDgiocatore='$row[IDgiocatore]'"
if (
mysql_query($query$db))   echo "update per punteggi 
"
;
 else echo 
"Errore durante update giocatori"; }   
 
mysql_close($db);
 
foot();
 
?> 
Mi spieghi un attimo a parole cosa vorresti che facesse questo pezzo...