<?php
defined('BASEPATH') OR exit('No direct script access allowed');
    class User_Model extends CI_Model{
    	public function login($data){
    		if(!empty($this->db->where($data)->get('user')->result_array())){
    			return $this->db->where($data)->get('user')->result_array();
    		}else{
    			return false;
    		}
    	}
    }