KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using Zend Framework, is there a way to pass multiple conditions to an update statement using the quoteInto method? I've found some references to this problem but I'm looking for a supported way without having to extend Zend_Db or without concatenation. $db = $this->getAdapter(); $data = array('profile_value' => $form['profile_value']); $where = $db->quoteInto('user_id = ?', $form['id']) . $db->quoteInto(' AND profile_key = ?', $key); $this->update($data, $where); References http://blog.motane.lu/2009/05/21/zend_db-quoteinto-with-multiple-arguments/ http://codeaid.net/php/multiple-parameters-in-zend_db::quoteinto%28%29
Tags (comma-separated)
Save Edits
Cancel