|    
			
				19/03/2009, 06:38
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: agosto-2008 Ubicación: R.D 
						Mensajes: 1.153
					 Antigüedad: 17 años, 2 meses Puntos: 139 |  | 
  |  Respuesta: Problema con UPDATE!!!  
  <input type='Text' name='Goles[1]'>  <input type='hidden name='jugador[1]'>
 
 if (!empty($_POST['Goles'])) {
 $gol=array_keys($_POST['Goles']);
 
 }
 
 if (!empty($_POST['Jugador'])) {
 $jug=array_keys($_POST['Jugador']);
 
 }
 
 
 for($a=0;$a<count($gol);$a++){
 
 $result2 = mysql_query("UPDATE datos SET Goles = '$gol[$a]' WHERE Jugador='$Jug[$a]'");
 
 }
 
 Algo un poco informal podria ser esto.
   Última edición por gjx2; 19/03/2009 a las 06:47
     |