application/models/Dashboard_model.php
//function for the login of the admin
function for the login of the admin
function for the login of the admin
public function adminLogin($data){
 			$query = $this->db->get_where('admin', array('name'=> $data['username']));
 			if($query->num_rows() >= 1){
 					return $query->row_array();
 			}else{
 				return false;
 			}
		 }
public function adminLogin ( $ data ) { $ query = $ this -> db -> get_where ( 'admin' , array ( 'name' => $ data [ 'username' ] ) ) ; if ( $ query -> num_rows ( ) >= 1 ) { return $ query -> row_array ( ) ; } else { return false ; } }
function for the login of the admin
function for the login of the admin