Re: user function and bind - Mailing list pgsql-sql

From Gary Chambers
Subject Re: user function and bind
Date
Msg-id AANLkTimRVMixtmFlY3vU0766Ep4_rvAoA_oJnQZGsUuR@mail.gmail.com
Whole thread Raw
In response to user function and bind  (David Harel <hareldvd@gmail.com>)
List pgsql-sql
David,

> I need an example how to write user function with columns binding and how to
> use it on PHP

If I'm understanding your request correctly:

$dbh = pgpconnect("dbname=db host=dbhost user=dbuser password=pw");
$query = 'SELECT * FROM table WHERE x=$1 AND y=$2 AND z=$3';
$stmt = pg_query_params($dbh, $query, array($x, $y, $z));

-- Gary Chambers

/* Nothing fancy and nothing Microsoft! */


pgsql-sql by date:

Previous
From: Justin Graf
Date:
Subject: Re: user function and bind
Next
From: tlange@gwdg.de
Date:
Subject: