Re: Update problem

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



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@xxxxxxxxx        | Gutenbergring 38             #
# gerd.terlutter@xxxxxx | D-22848 Noderstedt           #
# tel:0171/6992579      | tel:+49 40 500 171-1         #
# Buero:040/500171-17   | fax:+49 40 500 171-71        #
--------------------------------------------------------




[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