pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: John Mohr <jtmohr@healthconresources.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Does php/postgres support placeholder's?
Date: Thu, 28 Apr 2005 09:22:31 +0800
Message-ID: <42703AD7.8000409@familyhealth.com.au> (raw)
In-Reply-To: <IHEBIKJHMMKHJKLKCDHLCEOKEIAA.jtmohr@healthconresources.com>
References: <IHEBIKJHMMKHJKLKCDHLCEOKEIAA.jtmohr@healthconresources.com>

It has special functions for it in 5.1 CVS, but not in release. 
However, you can just do it yourself using the PREPARE and EXECUTE 
statements:

http://www.postgresql.org/docs/8.0/interactive/sql-prepare.html
http://www.postgresql.org/docs/8.0/interactive/sql-execute.html

Chris


John Mohr wrote:
> 
> Does php/postgres support placeholder's in queries and updates. 
> Something that looks like "select * from x where key=?" ? I notice that 
> the call interface doesn't support all of the documented calls, for 
> example pg_query and pg_send_query, but not pg_query_params (according 
> to pgsql.c, the postgres php -> postgres interface program).



view thread (4+ messages)  latest in thread

Message-ID: <42703AD7.8000409@familyhealth.com.au>
Permalink:  ../42703AD7.8000409@familyhealth.com.au/
Also on:    postgresql.org/message-id/42703AD7.8000409@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: chriskl@familyhealth.com.au, jtmohr@healthconresources.com
  Subject: Re: Does php/postgres support placeholder's?
  In-Reply-To: <42703AD7.8000409@familyhealth.com.au>
  References: <IHEBIKJHMMKHJKLKCDHLCEOKEIAA.jtmohr@healthconresources.com> <42703AD7.8000409@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox