$sql = "select * from sometable where id = ?" $data = 1; FetchAll ($sql, $data)
Would replace the ? with the vaule of 1. It gets more advanced eaiser to just look at the manual verses me pasting it here. see http://framework.zend.com/manual/en/zend.db.select.html -----Original Message----- From: Kexiao Liao [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 12, 2007 11:15 AM To: fw-general@lists.zend.com Subject: [fw-general] fetchAll($where, $order) When we use Zend_DB_Table_Abstract fetchAll($where, $order) to get all the records from table. In the where clause, if we have several condition, for example, condition1, condtion2, condition3. How do we put all these conditions in the where clause? Thank in advance. -- View this message in context: http://www.nabble.com/fetchAll%28%24where%2C-%24order%29-tp14298290s16154p14 298290.html Sent from the Zend Framework mailing list archive at Nabble.com.