From: | Gerd Terlutter <gerd(at)MplusB(dot)de> |
---|---|
To: | Ângelo Marcos Rigo <angelo_rigo(at)yahoo(dot)com(dot)br> |
Cc: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, pgsql-php(at)postgresql(dot)org |
Subject: | Re: Update problem |
Date: | 2003-08-21 12:28:21 |
Message-ID: | 3F44BAE5.1080605@MplusB.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
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(at)MplusB(dot)de | Gutenbergring 38 #
# gerd(dot)terlutter(at)web(dot)de | D-22848 Noderstedt #
# tel:0171/6992579 | tel:+49 40 500 171-1 #
# Buero:040/500171-17 | fax:+49 40 500 171-71 #
--------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Ângelo Marcos Rigo | 2003-08-21 13:43:21 | Re: Update problem |
Previous Message | Ângelo Marcos Rigo | 2003-08-21 12:24:08 | Re: Update problem |