Re: Is there PHP mysql_real_escape_string for postgresql?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: dterrors(at)hotmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there PHP mysql_real_escape_string for postgresql?
Date: 2007-12-21 05:28:59
Message-ID: b42b73150712202128p54230b3k65bf0ec4c4d46652@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Dec 17, 2007 9:37 PM, <dterrors(at)hotmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2007-12-21 05:47:18 Re: Composite types for composite primary/foreign keys?
Previous Message brian 2007-12-21 04:03:32 Re: Howto backup all functions?