source:
pro-violet-viettel/sourcecode/application/modules/admin/models/user_model.php
@
370
Last change on this file since 370 was 369, checked in by namnd, 11 years ago | |
---|---|
File size: 423 bytes |
Line | |
---|---|
1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
2 | |
3 | class User_model extends MY_Model |
4 | { |
5 | |
6 | protected $table_name = 'tbluser'; |
7 | protected $id_name = 'us_id'; |
8 | |
9 | function __construct() |
10 | { |
11 | parent::__construct(); |
12 | } |
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 | } |
20 | |
21 | } |
Note: See TracBrowser
for help on using the repository browser.