function DeleteWhere($table, $wherefield, $wherevalue) { $this->db->where($wherefield, $wherevalue); $this->db->delete($table); return true; }