Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Far_Access_Users extends Zend_Db_Table_Abstract {
- protected $_name = 'users';
- protected $_primary = 'iduser';
- protected $_sequence = true;
- public function getById($id)
- {
- $select = $this->select()->where('iduser = ?', $id);
- $row = $this->fetchRow($select);
- var_dump($row); exit;
- }
- }
- print $select->__toString();
- SELECT `users`.* FROM `users` WHERE (iduser = '1');
- | iduser | login | senha | nome | email | estado |
- +----------+--------+-------+-------+-------------------------+--------+
- | 1 | me | dude | Andre | mymail@xxxop.pt | activo |
- +----------+--------+-------+-------+-------------------------+--------+
Add Comment
Please, Sign In to add comment