Ignore:
Timestamp:
Nov 20, 2014 11:00:32 AM (10 years ago)
Author:
dungnv
Message:
 
File:
1 edited

Legend:

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

    r459 r579  
    11<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    22
    3 class User_model extends MY_Model
     3class User_model extends CI_Model
    44{
    55       
     
    6262                                $sql.=" WHERE (cellphone LIKE '%".$data['keyword']."%' OR collaborator LIKE '%".$data['keyword']."%' OR acc_balanced LIKE '%".$data['keyword']."%') ";
    6363                }
    64                 return $this->db->query($sql)->row_array()['total'];
     64               
     65                $query = $this->db->query($sql);
     66                $row = $query->row_array();
     67               
     68                return $row['total'];
    6569        }
    6670       
Note: See TracChangeset for help on using the changeset viewer.