function value_exists($table,$field,$value) { return ($this->db->from($table)->where($field,$value)->count_all_results() == 0)?FALSE:TRUE; }