Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** The class is defined for all data base related functions
- */
- class Users extends Zend_Db_Table_Abstract
- {
- protected $db;
- public function __construct() {
- $this->db = Zend_Registry::get('db');
- }
- public function findCredentials($username, $pwd) {
- $this->db->setFetchMode(Zend_Db::FETCH_OBJ);
- $select = "select * from ourbank_userloginupdates where Username = '".$username."' && Password ='".$pwd."'";
- $row = $this->fetchRow($select);
- if($row) { /*
- * If success return the row
- */
- return $row;
- }
- return false;
- }
- }
Add Comment
Please, Sign In to add comment