pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Update problem
Date: Thu, 21 Aug 2003 09:24:08 -0300 (ART)
Message-ID: <20030821122408.6842.qmail@web14812.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0308191410220.10096-100000@css120.ihs.com>

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" <scott.marlowe@ihs.com> 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



view thread (9+ messages)  latest in thread

Message-ID: <20030821122408.6842.qmail@web14812.mail.yahoo.com>
Permalink:  ../20030821122408.6842.qmail@web14812.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030821122408.6842.qmail@web14812.mail.yahoo.com

 · 

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: angelo_rigo@yahoo.com.br, scott.marlowe@ihs.com
  Subject: Re: Update problem
  In-Reply-To: <20030821122408.6842.qmail@web14812.mail.yahoo.com>
  References: <Pine.LNX.4.33.0308191410220.10096-100000@css120.ihs.com> <20030821122408.6842.qmail@web14812.mail.yahoo.com>

* 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