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 A9854D1B99D for ; Thu, 21 Aug 2003 09:24:16 -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 91209-05 for ; Thu, 21 Aug 2003 09:24:09 -0300 (ADT) Received: from web14812.mail.yahoo.com (web14812.mail.yahoo.com [66.163.172.96]) by svr1.postgresql.org (Postfix) with SMTP id 49BC1D1B8C8 for ; Thu, 21 Aug 2003 09:24:05 -0300 (ADT) Message-ID: <20030821122408.6842.qmail@web14812.mail.yahoo.com> Received: from [200.219.69.252] by web14812.mail.yahoo.com via HTTP; Thu, 21 Aug 2003 09:24:08 ART Date: Thu, 21 Aug 2003 09:24:08 -0300 (ART) From: =?iso-8859-1?q?=C2ngelo=20Marcos=20Rigo?= Subject: Re: Update problem To: "scott.marlowe" Cc: pgsql-php@postgresql.org In-Reply-To: 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-Archive-Number: 200308/90 X-Sequence-Number: 2267 Hi !! I do this: $titulo = pg_scape_string($_POST['titulo']); $resumo = pg_scape_string($_POST['resumo']); $texto = pg_scape_string($_POST['texto']); but it do not work is it correct? --- "scott.marlowe" escreveu: > On Tue, 19 Aug 2003, Ângelo Marcos Rigo wrote: > > > Hi Scott > > > > You mean before i do insert the data in the > database > > do a clean up with: > > $texto = pg_scape_string($_POST['texto']); > > Crs mean carriage return? > > why do it make the text dissapear? > > Not sure, I'm just guessing. Anytime you want to > put text into the > database you need to pg_escape_string($field) each > field to make sure that > ' characters get escaped. You can use > remove_slashes() to get it off. > I'm not sure why there's no pg_unescape_string() > though. > ===== Â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