application/models/Dashboard_model.php
//function for recovering the forgotten password of account
function for recovering the forgotten password of account
function for recovering the forgotten password of account
function accountRecovery($data){
 			$this->db->where('admin.name', $data['username']);
 			$this->db->where('admin.hint', $data['hint']);
 			$query = $this->db->get('admin');
 			if($query->num_rows() >= 1){
 					return $query->row_array();
 			}else{
 				return false;
 			}
 		}
function accountRecovery ( $ data ) { $ this -> db -> where ( 'admin.name' , $ data [ 'username' ] ) ; $ this -> db -> where ( 'admin.hint' , $ data [ 'hint' ] ) ; $ query = $ this -> db -> get ( 'admin' ) ; if ( $ query -> num_rows ( ) >= 1 ) { return $ query -> row_array ( ) ; } else { return false ; } }
function for recovering the forgotten password of account
function for recovering the forgotten password of account
/*$query = $this->db->where('admin', array('name'=> $data['username'], 'hint' => $data['hint']));*/