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 5D7F5D1BB17 for ; Thu, 21 Aug 2003 09:29:17 -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 92950-05 for ; Thu, 21 Aug 2003 09:28:48 -0300 (ADT) Received: from lighthouse.MplusB.de (lighthouse.MplusB.de [193.102.49.10]) by svr1.postgresql.org (Postfix) with ESMTP id 6211ED1BB40 for ; Thu, 21 Aug 2003 09:28:44 -0300 (ADT) Received: from [193.102.49.130] (helo=compass.MplusB.de) by lighthouse.MplusB.de with esmtp (Exim 3.35 #1 (Debian)) id 19poY9-0002j7-00; Thu, 21 Aug 2003 14:28:21 +0200 Received: from MplusB.de (gerd@sloop.MplusB.de [193.102.49.177]) by compass.MplusB.de (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id OAA19254; Thu, 21 Aug 2003 14:28:21 +0200 X-Authentication-Warning: compass.MplusB.de: Host gerd@sloop.MplusB.de [193.102.49.177] claimed to be MplusB.de Message-ID: <3F44BAE5.1080605@MplusB.de> Date: Thu, 21 Aug 2003 14:28:21 +0200 From: Gerd Terlutter User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.2) Gecko/20030401 Debian/1.0.2-2 X-Accept-Language: de-de MIME-Version: 1.0 To: =?ISO-8859-1?Q?=C2ngelo_Marcos_Rigo?= Cc: "scott.marlowe" , pgsql-php@postgresql.org Subject: Re: Update problem References: <20030821122408.6842.qmail@web14812.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by compass.MplusB.de id OAA19254 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/91 X-Sequence-Number: 2268 pg_scape_string() ? better pg_escape_string() ? =C2ngelo Marcos Rigo wrote: > Hi !! >=20 > I do this: >=20 > $titulo =3D pg_scape_string($_POST['titulo']); > $resumo =3D pg_scape_string($_POST['resumo']); > $texto =3D pg_scape_string($_POST['texto']); >=20 > but it do not work is it correct? >>>do a clean up with: >>>$texto =3D pg_scape_string($_POST['texto']); >>Not sure, I'm just guessing. Anytime you want to >>put text into the=20 >>database you need to pg_escape_string($field) each --=20 -------------------------------------------------------- # Gerd Terlutter | Mueller+Blanck Software GmbH # # gerd@MplusB.de | Gutenbergring 38 # # gerd.terlutter@web.de | D-22848 Noderstedt # # tel:0171/6992579 | tel:+49 40 500 171-1 # # Buero:040/500171-17 | fax:+49 40 500 171-71 # --------------------------------------------------------