ok... well the docs need to reflect this... currently they say "Returns
the number of rows affected by the execution of the last INSERT, DELETE,
or UPDATE statement executed by this statement object."
 
Shawn McAllister

________________________________

From: Arthur M. Kang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 28, 2007 3:44 PM
To: Shawn McAllister
Cc: fw-general@lists.zend.com
Subject: Re: [fw-general] numRows method missing in db adapter


You can use $stmt->rowCount().

Arthur


Shawn McAllister wrote: 

        I am using the MySqli adapter for our xmlrpc data api. We
recently decided to use the Zend_Db classes just to maintain
consistency... before we were using our own custom MySqli adapter class
that we wrote to support slave database servers and so on... well as I
am porting the code to Zend_Db I noticed that there is my method to
return a count of rows from a query... what's up with that? Am I just
missing something or being we todd did?

        Shawn McAllister 

Reply via email to