Zend_Db_Table - Update don't work

Posted by poru on Stack Overflow See other posts from Stack Overflow or by poru
Published on 2010-03-13T19:00:15Z Indexed on 2010/03/13 19:05 UTC
Read the original article Hit count: 295

The code seems not working.

// $counter is an instance of Zend_Db_Table_Abstract
$counter->update(array('hits' => 'hits+1'), '"id" = 1');

I took a look into the DB profiler and find the following query:

UPDATE `downloads` SET `hits` = ? WHERE ("id" = 1)

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about zend-db-table