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 EE378D1B8F3 for ; Tue, 19 Aug 2003 11:44:50 -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 70605-08 for ; Tue, 19 Aug 2003 11:44:38 -0300 (ADT) Received: from web14805.mail.yahoo.com (web14805.mail.yahoo.com [216.136.224.221]) by svr1.postgresql.org (Postfix) with SMTP id 7E923D1B8B8 for ; Tue, 19 Aug 2003 11:44:33 -0300 (ADT) Message-ID: <20030819144437.14997.qmail@web14805.mail.yahoo.com> Received: from [200.219.69.252] by web14805.mail.yahoo.com via HTTP; Tue, 19 Aug 2003 11:44:37 ART Date: Tue, 19 Aug 2003 11:44:37 -0300 (ART) From: =?iso-8859-1?q?=C2ngelo=20Marcos=20Rigo?= Subject: Re: Update problem To: "Ângelo" Marcos Rigo , pgsql-php@postgresql.org In-Reply-To: <20030819142107.31023.qmail@web14807.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char C2 hex) in message header 'To' To: "\302ngelo" Marcos R... ^ X-Archive-Number: 200308/78 X-Sequence-Number: 2255 and i dont know why but if the "texto" field (wich is a text data type on postgres) is empty and i write something the update happen with success. --- Ângelo Marcos Rigo escreveu: > 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"); > > Thank´s in advance > > ===== > Â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 1: subscribe and unsubscribe commands go 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