Hello ,

I need to use fetchRow method but I need more than one 'where' condition.
I tried the code below but it is not working :

        $whereArray = array(
            'username = ?'  => $uid,
            'code = ?' => $code
        );
                
                $members = new Members();
                $where  = $members->getAdapter()->quote($whereArray);
                $row = $members->fetchRow($where);

I see in the doc the following example:
$where = array(
            'bug_status = ?'  => 'NEW',
            'reported_by = ?' => 'dduck'
        );
$rows = $table->fetchAll($where);

but it's not using any mehods to quote the sql like this example :
$where = $table->getAdapter()->quoteInto('bug_status = ?', 'NEW');
$rows = $table->fetchAll($where);

Thank you for any clarification!
-- 
View this message in context: 
http://www.nabble.com/beginner%2C-quoting-where-in-array-tf4473006s16154.html#a12753364
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to