X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 39218D1B8FC for ; Tue, 19 Aug 2003 14:33:04 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 13491-06 for ; Tue, 19 Aug 2003 14:32:54 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 24DA6D1B96C for ; Tue, 19 Aug 2003 14:32:53 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h7JHV6PM025835; Tue, 19 Aug 2003 11:31:06 -0600 (MDT) Date: Tue, 19 Aug 2003 11:31:09 -0600 (MDT) From: "scott.marlowe" To: =?iso-8859-1?q?=C2ngelo=20Marcos=20Rigo?= Cc: Subject: Re: Update problem In-Reply-To: <20030819164119.92968.qmail@web14811.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/86 X-Sequence-Number: 2263 I'm gonna guess that you've got CRs embedded or other text that needs escaping. Are you using pg_escape_string before the insert? On Tue, 19 Aug 2003, Ângelo Marcos Rigo wrote: > Hi Scott > > It´s strange but whith a little amount of text the > update works. > I have the same script with text field and it works > fine. > > Now that i am using textarea because it handle a full > magazine article it is not working i do print $query > on the final script and return null. > > It updates the title and abstract but the article wich > has a huge amount of text (with html tags inserted > from a built in javascript html editor). > > Thank´s in advance > > --- "scott.marlowe" escreveu: > > On Tue, 19 Aug 2003, Ângelo Marcos Rigo wrote: > > > > > I have an update escript that works fine with text > > > fields but with an textarea version the script is > > > passing an empty value, for the "texto" field > > > Here is a snip of code that receives the values: > > > > > > $id = $_POST['id']; > > > $titulo = $_POST['titulo']; > > > $resumo = $_POST['resumo']; > > > $texto = $_POST['texto']; > > > print_r($texto); > > > include 'db.php'; > > > $query = "UPDATE revista SET titulo='$titulo', > > > resumo='$resumo', texto='$texto' WHERE id='$id'"; > > > > > > here is the "texto" field where i do write the > > > modifications to be updated: > > > > > > print ("Texto"); > > > > Hi Ângelo, welcome to the php list. > > > > Is the problem that the FORM is printed with an > > empty text area, or that, > > after entering text into the textarea that it > > doesn't get inserted into > > the database upon submission? > > > > > > ---------------------------(end of > > broadcast)--------------------------- > > TIP 2: you can get off all lists at once with the > > unregister command > > (send "unregister YourEmailAddressHere" to > majordomo@postgresql.org) > > ===== > Ângelo Marcos Rigo > AMR Informática > (51) 3348 0870 > Rua Pe. Alois Kades 400/210 > Porto Alegre /RS/Brasil > http://amr.freezope.org > angelo_rigo@yahoo.com.br > > > > _______________________________________________________________________ > Desafio AntiZona - Um emocionante desafio de perguntas e respostas que > te dá um Renault Clio, kits de eletrônicos, computadores, notebooks e > mochilas. Cadastre-se, participe e concorra! > www.cade.com.br/antizona > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html >