Zend multiple where

pvp12345

New Member
I have thi next code, but he doesn't work:\[code\]$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();\[/code\]I need to make this query \[code\]... WHERE\[/code\]rank_id\[code\]= $id AND\[/code\]type\[code\]= 'must_sell'..\[/code\]Thank toy.
 
Back
Top