Changeset 396 for pro-violet-viettel/sourcecode/application/core
- Timestamp:
- Nov 3, 2014 6:48:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/core/MY_Model.php
r375 r396 47 47 { 48 48 $sql="SELECT COUNT(".$this->id_name.") as total FROM ".$this->table_name." WHERE ".$data['field']." = '".$data['value']."' LIMIT 1"; 49 if (!isset($this->db->query($sql)->row_array()['total'])) return false; 49 50 if ($this->db->query($sql)->row_array()['total']==1) 50 51 {
Note: See TracChangeset
for help on using the changeset viewer.