Zend Framework: How to find a table row by the value of a specified column?

Or if you are trying to retrieve only one row.

$result = $db->fetchAll($where); or if you are trying to retrieve only one row. $result = $db->fetchRow($where); You could also use the Zend_Db_Select Object, keeping the adapter a little further abstracted: $db = $this->getDbTable(); $select = $db->select()->where('token =? ', $token); $result = $db->fetchAll($select).

This can be easily done by creating select object and fetching a row using this object. It's well described in manual: framework.zend.com/manual/en/zend.db.sel... Your code could look like: $select = $this->getDbTable()->select()->where('token =? ', (string) $token); $row = $this->getDbTable()->fetchRow($select).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions