Rev | Line | |
---|
[369] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
---|
[328] | 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 | }
|
---|
[369] | 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 | }
|
---|
[328] | 20 |
|
---|
| 21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.