Skip site navigation (1) Skip section navigation (2)

Re: Does php/postgres support placeholder's?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: John Mohr <jtmohr(at)healthconresources(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Does php/postgres support placeholder's?
Date: 2005-04-28 01:22:31
Message-ID: 42703AD7.8000409@familyhealth.com.au (view raw or flat)
Thread:
Lists: pgsql-php
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).

In response to

pgsql-php by date

Next:From: Volkan YAZICIDate: 2005-04-28 10:53:35
Subject: Does php/postgres support placeholder's?
Previous:From: John DeSoiDate: 2005-04-28 00:11:06
Subject: Re: Does php/postgres support placeholder's?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group