2
我在更新行時遇到了一些麻煩。Zend_Db_Adapter_Abstract :: update()必須是數組
我的類擴展Zend_Db_Table_Abstract
這裏是我的代碼:
return $this->update(
array('data' => $data),
$this->getAdapter()->quoteInto("id = ?", $id)
) ? true : false;
我不斷收到唯一的例外是: PHP Catchable fatal error: Argument 2 passed to Zend_Db_Adapter_Abstract::update() must be an array, string given, called in /Applications/MAMP/htdocs/app/library/Session/Handler.php on line 51 and defined in /Applications/MAMP/libraries/zend-framework/ZendFramework-1.11.3-minimal/library/Zend/Db/Adapter/Abstract.php on line 587
我試圖傳遞一個陣列,但也沒有任何反應。任何想法?!