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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -