Zend multiple where

Posted by topdog 522 days ago Questions| zend sell multiple All

I have thi next code, but he doesn't work:

$select_sell = $this->select();
$select_sell->from($this->_name, array('rank_id'))
            ->where('rank_id = ?', $id)
            ->where('type = ?', 'must_sell');
$result = $this->fetchAll($select_sell)->count();

I need to make this query ... WHERErank_id= $id ANDtype= 'must_sell'..

Thank toy.

Originally asked by: Alexander.Plutov on Stack Overflow

Discuss Bury


Who Voted for this Question