Re: mdb2 affected rows typ method

From: Date: Wed, 12 Jul 2006 17:58:52 +0000
Subject: Re: mdb2 affected rows typ method
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24633@lists.php.net to get a copy of this message
Mark Steudel wrote:
I was wondering if there was a affected rows method for mdb2? e.g. $sth =& $this->db->autoExecute( $table, $field_values );
no need .. $sth already contains the affected rows .. generally if you need the affected rows you need to use the $mdb2->exec() method. for prepared statements specify the third parameter in the prepare() method as MDB2_PREPARE_MANIP in which case execute() will return the affected rows. this follows the PDO API regards, Lukas

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