Re: Affected Rows using MDB2

From: Date: Thu, 09 Nov 2006 18:54:59 +0000
Subject: Re: Affected Rows using MDB2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25747@lists.php.net to get a copy of this message
Hi Mark,
I'm using the latest version of MDB2 (2.3.0) and was wondering if there was any way of getting the the number of affected rows from an insert, update or delete statement, in a similar way of mysql_affected_rows()? Or is there a different technique for verifying CRUD success apart from the return value not being an instance of PEAR::ERROR?
http://pear.php.net/manual/en/package.database.mdb2.intro-execute.php if you use prepare()/execute() or just exec(), you'll get the number of affected rows as a result (or a PEAR_Error in case of an error). -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store

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