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! */ -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql