Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6112E476B92 for ; Fri, 6 Dec 2002 14:16:31 -0500 (EST) Received: from grumpy.usu.edu (grumpy.usu.edu [129.123.1.86]) by postgresql.org (Postfix) with ESMTP id 11E1E476929 for ; Fri, 6 Dec 2002 14:12:55 -0500 (EST) Received: from cc.usu.edu by cc.usu.edu (PMDF V5.2-32 #39089) id <01KPPMB029EO90PUDH@cc.usu.edu> for PGSQL-PHP@postgresql.org; Fri, 6 Dec 2002 12:12:41 MST Date: Fri, 06 Dec 2002 12:12:41 -0700 (MST) From: Mark Nelson Subject: Re: getting integer result from 4.1 In-reply-to: To: "scott.marlowe" Cc: brew@theMode.com, PGSQL-PHP@postgresql.org Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/11 X-Sequence-Number: 1686 Problem solved. There is a command no longer listed among the php documentation (since it has been updated for the newest releases) called pg_cmdtuples which does I guess the same thing as pg_affected_rows. That does just what I need in 4.1. Maybe I should find a 4.1 version of the documentation (or update to PHP 4.2/3) thanks for everyone's help in looking into this. /mark **************************************** On Fri, 6 Dec 2002, scott.marlowe wrote: > On Fri, 6 Dec 2002 brew@theMode.com wrote: > > > > > > I have an update statement that queries a db and updates wheere > > > it finds matches. > > > > Ooops, I just noticed it was an update statement, but there is a function > > for that, too, pg_affected_rows, I think. > > Note that the pg_affected_rows was added as of php version 4.2.0, so > you'll need to upgrade from 4.1 to get that functionality. > > 4.3 is in RC2 or so right now, so you might wanna wait a week or two for > the new version of php to come out. > >