Ignore:
Timestamp:
Nov 10, 2014 2:08:04 PM (11 years ago)
Author:
quyenla
Message:

paidlogs

File:
1 edited

Legend:

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

    r442 r444  
    3434    }
    3535
    36     function isExist($data) {
    37         $sql = "SELECT COUNT(id) as total FROM " . $this->table_name . " WHERE " . $data['field'] . " = '" . $data['value'] . "'";
    38         if (isset($data['id']))
    39         {
    40             $id=$data['id'];
    41             $sql.=" AND id <> ".$id." LIMIT 1";
    42         }
    43         $result = $this->db->query($sql)->row_array();
    44         if ($result['total'] == 1) {
    45             return true;
    46         } else {
    47             return false;
    48         }
    49     }
     36
    5037
    5138    function countPaidlog($data) {
Note: See TracChangeset for help on using the changeset viewer.