X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F0D865E3F21 for ; Fri, 6 Aug 2004 03:02:19 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62912-10 for ; Fri, 6 Aug 2004 06:02:16 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 018445E3F4D for ; Fri, 6 Aug 2004 03:01:08 -0300 (ADT) Received: from hosting.planetargon.com (hosting.planetargon.com [69.44.62.20]) by www.postgresql.com (Postfix) with SMTP id 87782CF5787 for ; Fri, 6 Aug 2004 00:00:26 -0300 (ADT) Received: (qmail 3966 invoked by uid 510); 6 Aug 2004 02:59:00 -0000 Received: from unknown (HELO ?192.168.1.101?) (robby@planetargon.com@67.160.164.97) by hosting.planetargon.com with SMTP; 6 Aug 2004 02:59:00 -0000 Subject: Re: Status of "associative functions" in php-pgsql? From: Robby Russell To: Steve Bergman Cc: pgsql-php In-Reply-To: <1091758791.16009.69.camel@localhost.localdomain> References: <1091758791.16009.69.camel@localhost.localdomain> Content-Type: text/plain Organization: PLANET ARGON Message-Id: <1091761162.11448.50.camel@vacant> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 05 Aug 2004 19:59:23 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/7 X-Sequence-Number: 2895 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