mysql - Zend php can not use rowCount for affected row -


this question has answer here:

i update row in db , check affected row not working rowcount() , mysql_affected_rows.

this code

$result = $this->_db_table->update(array('password' => $new_password), $where); 

i have checked in db , changes pass when i

$affectedrows = mysql_affected_rows($result); 

or

$affectedrows = $result->rowcount(); 

it's return false mysql_affected_rows , 500 error server rowcount(). test curl , ideas???

are sure content changed ? if update return 1 if actual record changed rather method being called. if no change made method return 0.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -