Re: Update problem - Mailing list pgsql-php

From Gerd Terlutter
Subject Re: Update problem
Date
Msg-id 3F44BAE5.1080605@MplusB.de
Whole thread Raw
In response to Re: Update problem  (Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>)
Responses Re: Update problem
List 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@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        #
--------------------------------------------------------



pgsql-php by date:

Previous
From: Ângelo Marcos Rigo
Date:
Subject: Re: Update problem
Next
From: Ângelo Marcos Rigo
Date:
Subject: Re: Update problem