$query = "UPDATE noticias SET autor='$autor', titulo='$titulo', fecha='$fecha', contenido='$contenido' WHERE id='$id'";