Retrieving affectedRows from query

From: Date: Wed, 26 Sep 2001 14:52:23 +0000
Subject: Retrieving affectedRows from query
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-329@lists.php.net to get a copy of this message
How can I retrieve the value from an insert/update query in Postgres I need both affected and lastoid from result, and I change the code in pgsql.php to access lastoid: function simpleQuery($query) { ... if ($ismanip) { $this->affected = @pg_cmdtuples($result); $this->lastoid = @pg_getlastoid($result); return DB_OK; } elseif (preg_match('/^\s*(SELECT)\s/i', $query) && ... I means, with reference can I use? $db->affectedRows() and $rs->affectedRows() don't works. Thanks in advance. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Despues de tres dias sin programar, la vida se torna sin sentido." -- Geoffrey James, "The Tao of Programming" Gerardo Perosio Operaciones - Desarrollos Digitales http://www.dd.com.ar (+54-11)6667-5700 Talcahuano 446 7* - Bs.As. Argentina ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

« previous php.pear.general (#329) next »