Ver Mensaje Individual
  #2 (permalink)  
Antiguo 13/09/2007, 17:07
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
Re: Al sustituir una fecha por otra me hace una operacion matematica

Porque no lo haces asi primeramente:
Código PHP:
$nueva_fecha date"d/m/Y" ); 
Luego en tu query:
Código PHP:
$sql "UPDATE noticias SET aprobado = 1,fecha ='$nueva_fecha' WHERE id = ".$_GET['id'];
               
$result mysql_query($sql) or die(mysql_error('ERROR')); 
Saludos.