Re: Update problem

From: Ângelo Marcos Rigo <angelo_rigo(at)yahoo(dot)com(dot)br>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Update problem
Date: 2003-08-21 12:24:08
Message-ID: 20030821122408.6842.qmail@web14812.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(dot)marlowe(at)ihs(dot)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(at)yahoo(dot)com(dot)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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Gerd Terlutter 2003-08-21 12:28:21 Re: Update problem
Previous Message Martin Marques 2003-08-20 15:04:45 Re: Postgres connection