Re: Is there PHP mysql_real_escape_string for postgresql? - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Is there PHP mysql_real_escape_string for postgresql?
Date
Msg-id b42b73150712202128p54230b3k65bf0ec4c4d46652@mail.gmail.com
Whole thread Raw
In response to Is there PHP mysql_real_escape_string for postgresql?  (dterrors@hotmail.com)
List pgsql-general
On Dec 17, 2007 9:37 PM,  <dterrors@hotmail.com> wrote:
> In php is there a postgresql version of mysql_real_escape_string() ?

There is (mentioned upthread), but if you are writing C vs. libpq you
may want to take a look a the parameterized interface.  It's a little
raw but parameterized queries do not have to escaped.

see: PQexecParams

merlin

pgsql-general by date:

Previous
From: brian
Date:
Subject: Re: Howto backup all functions?
Next
From: "Merlin Moncure"
Date:
Subject: Re: Composite types for composite primary/foreign keys?