From: Steve Bergman <steve@rueb.com>
To: pgsql-php <pgsql-php@postgresql.org>
Subject: Status of "associative functions" in php-pgsql?
Date: Thu, 05 Aug 2004 21:19:51 -0500
Message-ID: <1091758791.16009.69.camel@localhost.localdomain> (raw)
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
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: steve@rueb.com
Subject: Re: Status of "associative functions" in php-pgsql?
In-Reply-To: <1091758791.16009.69.camel@localhost.localdomain>
References: <1091758791.16009.69.camel@localhost.localdomain>
* 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