Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/10/2010, 11:38
blackside_Xd
 
Fecha de Ingreso: octubre-2010
Mensajes: 4
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: No Actualiza ;S

Código PHP:
[B][I][U]editar.php[/U][/I][/B]
<?php


     $conexion 
mysql_connect("localhost","root","");
     
mysql_select_db("andres"$conexion);
     
     
     
$arg1 $_POST['id'];
     
$arg2 $_POST['nombre'];
     
$arg3 $_POST['pokemon'];
     
$arg4 $_POST['tipo1'];
     
$arg5 $_POST['tipo2'];
     
$arg6 $_POST['fecha'];
     
     
$argumentoquery "update registros set nombre = "$arg2 "where id = " $arg1 . ;
     
$consulta mysql_query($argumentoquery$conexion);
   
     
$argumentoquery2 "update registros set pokemon = "$arg3 "where id = " $arg1 . ;
     
$consulta2 mysql_query($argumentoquery2$conexion);
     
     
$argumentoquery3 "update registros set tipo1 = "$arg4 "where id = " $arg1 . ;
     
$consulta3 mysql_query($argumentoquery3$conexion);
     
     
$argumentoquery4 "update registros set tipo2 = "$arg5 "where id = " $arg1 . ;
     
$consulta4 mysql_query($argumentoquery4$conexion);
     
     
$argumentoquery5 "update registros set fecha = "$arg6 "where id = " $arg1 . ;
     
$consulta5 mysql_query($argumentoquery5$conexion);

     
header("Location: editar.php");

?>
ya lo corregi lo mejor qu epude pero la verdad es que no entiendo proque no funciona D: ojala alguien sea mas claro en lo que me falta