Ignore:
Timestamp:
Oct 31, 2014 7:13:40 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php

    r328 r369  
    1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
     1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    22
    33class User_model extends MY_Model
     
    1111                parent::__construct();
    1212        }
     13       
     14        function check_data($login_name)
     15        {
     16                $this->db->where('login_name', $login_name);
     17                $query = $this->db->get($this->table_name);
     18                return $query->num_rows();
     19        }
    1320
    1421}
Note: See TracChangeset for help on using the changeset viewer.