Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/04/2011, 23:55
Avatar de MDJProdMusic
MDJProdMusic
 
Fecha de Ingreso: abril-2011
Ubicación: Antofagasta, Chile
Mensajes: 36
Antigüedad: 13 años
Puntos: 0
Respuesta: Update set where

Cita:
Iniciado por xalupeao Ver Mensaje
Código php:
Ver original
  1. if (isset($_post['editar'])) {
  2.  
  3.       $query = "update noticias set titulo='$titulo', url='$url', fecha='$fecha', noticia='$noticia' where id=$id";
  4.      mysql_query($query);
  5.  
  6.       echo "editada exitosamente!";
  7.  
  8. }

puedes probar asi.
gracias por su ayuda, pero no me funciono,
aun sigue sin reemplazar los datos =/