2
該代碼似乎無法正常工作。Zend_Db_Table - 更新不起作用
// $counter is an instance of Zend_Db_Table_Abstract
$counter->update(array('hits' => 'hits+1'), '"id" = 1');
我接過來一看進入DB探查,找到以下查詢:
UPDATE `downloads` SET `hits` = ? WHERE ("id" = 1)