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

Status of "associative functions" in php-pgsql?

From: Steve Bergman <steve(at)rueb(dot)com>
To: pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Status of "associative functions" in php-pgsql?
Date: 2004-08-06 02:19:51
Message-ID: 1091758791.16009.69.camel@localhost.localdomain (view raw or flat)
Thread:
Lists: pgsql-php
I have not been able to find any documentation on the "associative
functions" of php-pgsql (e.g. pg_insert) which supposedly build queries
based upon an associative array passed to them.  It's not a big deal, I
guess, but this would save a few lines of code in various places. I have
heard that they were implemented in php 4.2 or so, but were considered
experimental, and yet there is no sign of them in the documentation for
php5.

Like I say, it's not a huge problem, but the "insert" syntax (insert
into table set field='value') of MySQL is nicer, and makes for more
readable code, when building a query in a loop.

Thanks for any pointers,

Steve


Responses

pgsql-php by date

Next:From: Robby RussellDate: 2004-08-06 02:59:23
Subject: Re: Status of "associative functions" in php-pgsql?
Previous:From: Justin WyerDate: 2004-08-05 07:47:07
Subject: Re: pg calls not working from within Apache

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