Re: Update problem

Поиск
Список
Период
Сортировка
От Ângelo Marcos Rigo
Тема Re: Update problem
Дата
Msg-id 20030821122408.6842.qmail@web14812.mail.yahoo.com
обсуждение исходный текст
Ответ на Update problem  (Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>)
Список 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.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

В списке pgsql-php по дате отправления:

Предыдущее
От: Martin Marques
Дата:
Сообщение: Re: Postgres connection
Следующее
От: Gerd Terlutter
Дата:
Сообщение: Re: Update problem