I've got this query, from what I've found of examples here and in the docs this should work, but the script is saying no.. needs array not string. Do I have to do something like
$db = $this->db = Zend_Registry::getinstance()->dbAdapter;
$db->select()->from('offer_term')->where('term_id = '.$entry[$i]);
$db->update('status = 0');
with the above I get an error about it not taking a string it needs to be an array.
with the below my whole script breaks. So, I'm kinda new to Zend, anyone care to elaborate as to what I am doing wrong?
$db = $this->db = Zend_Registry::getinstance()->dbAdapter;
$db->select()->from('offer_term')->where('term_id = ?',array($entry[$i]));
$db->update('status = ?', array('0'));