Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/06/2008, 12:22
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Actualizando datos [ No extrae valores ]

Prueba hacer algo así:
Código PHP:
<?php
include ('../conect.php');
$date=date('Y-n-d G:i:s');
extract($_REQUEST);

$nombre $_REQUEST["nombre"];
$apellido $_REQUEST["apellido"];
$cedula $_REQUEST["cedula"];
$telefono $_REQUEST["telefono"];
$mail $_REQUEST["mail"];
$fecha $_REQUEST["fecha"];
          
$sql "UPDATE info SET
                nombre='$nombre',
                apellido = '$apellido',
                cedula = '$cedula',
                telefono = '$telefono',
                mail = '$mail',
                fecha = '$fecha'"
;
                       
$result mysql_query($sql) or die( "[ERROR] Query: $query, error: " mysql_error() );
if( 
$result ) {
      
header("Location: ../edit_perf_x2.php?status=1");
} else {
      
header("Location: ../edit_perf_x2?status=2");
}
?>
Saludos.