pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedStatus of "associative functions" in php-pgsql?
2+ messages / 2 participants
[nested] [flat]
* Status of "associative functions" in php-pgsql?
@ 2004-08-06 02:19 Steve Bergman <steve@rueb.com>
2004-08-06 02:59 ` Re: Status of "associative functions" in php-pgsql? Robby Russell <robby@planetargon.com>
0 siblings, 1 reply; 2+ messages in thread
From: Steve Bergman @ 2004-08-06 02:19 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Status of "associative functions" in php-pgsql?
2004-08-06 02:19 Status of "associative functions" in php-pgsql? Steve Bergman <steve@rueb.com>
@ 2004-08-06 02:59 ` Robby Russell <robby@planetargon.com>
0 siblings, 0 replies; 2+ messages in thread
From: Robby Russell @ 2004-08-06 02:59 UTC (permalink / raw)
To: Steve Bergman <steve@rueb.com>; +Cc: pgsql-php
Take a look at PEAR::DB.
-Robby
On Thu, 2004-08-05 at 19:19, Steve Bergman wrote:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
--
Robby Russell | Owner.Developer.Geek
PLANET ARGON | www.planetargon.com
Portland, OR | robby@planetargon.com
503.351.4730 | blog.planetargon.com
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-08-06 02:59 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 02:19 Status of "associative functions" in php-pgsql? Steve Bergman <steve@rueb.com>
2004-08-06 02:59 ` Robby Russell <robby@planetargon.com>
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