Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2011, 23:47
Avatar de xalupeao
xalupeao
 
Fecha de Ingreso: mayo-2008
Ubicación: Santiago, Chile
Mensajes: 749
Antigüedad: 16 años
Puntos: 12
Respuesta: Update set where

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.
__________________
Hosting en Chile en Silverhost - La solución en Hosting en Chile.