Re: Update problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxx> 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@xxxxxxxxxxxx
 


_______________________________________________________________________
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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux