Affiliate system create in Codeigniter