pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerd Terlutter <gerd@MplusB.de>
To: Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Update problem
Date: Thu, 21 Aug 2003 14:28:21 +0200
Message-ID: <3F44BAE5.1080605@MplusB.de> (raw)
References: <20030821122408.6842.qmail@web14812.mail.yahoo.com>

pg_scape_string() ?
better
pg_escape_string()  ?
Ângelo Marcos Rigo wrote:
> 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?
>>>do a clean up with:
>>>$texto = pg_scape_string($_POST['texto']);
>>Not sure, I'm just guessing.  Anytime you want to
>>put text into the 
>>database you need to pg_escape_string($field) each


-- 
--------------------------------------------------------
# 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        #
--------------------------------------------------------





view thread (9+ messages)  latest in thread

Message-ID: <3F44BAE5.1080605@MplusB.de>
Permalink:  ../3F44BAE5.1080605@MplusB.de/
Also on:    postgresql.org/message-id/3F44BAE5.1080605@MplusB.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: gerd@MplusB.de, angelo_rigo@yahoo.com.br, scott.marlowe@ihs.com
  Subject: Re: Update problem
  In-Reply-To: <3F44BAE5.1080605@MplusB.de>
  References: <20030821122408.6842.qmail@web14812.mail.yahoo.com> <3F44BAE5.1080605@MplusB.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox