CI->db->limit(1)->where($field,$str)->where($id_field.' != ',$id_val)->get($table); } else { list($table, $field)=explode('.', $field); $query = $this->CI->db->limit(1)->get_where($table, array($field => $str)); } return $query->num_rows() === 0; } } // END MY Form Validation Class /* End of file MY_Form_validation.php */ /* Location: ./application/libraries/MY_Form_validation.php */