Re: PHP Affiliate Program?

From: Date: Tue, 15 Aug 2000 13:47:26 +0000
Subject: Re: PHP Affiliate Program?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11815@lists.php.net to get a copy of this message
Ben, Yes, it's possible, at least the way I did it, it was possible. My method for implementing an affiliate system was customized to my unique way of creating web sites, and may not apply to others. It was for a site I have since sold, and I no longer have the code, but here was the gist of it: Webmasters sign up, get an ID. Webmasters set up links to my site any way they see fit, but link must end with ?s=ID (if ID was 245, then ?s=245). I set up my site to keep that variable 's' in the query string no matter what (it's a lot more work, but I don't like forced upon cookies). If the user eventually signed up, I stuck the ID in a field called AffiliateID in the user's record (along with name, email, credit card number, etc). When I billed the card, if this AffiliateID was <> 0, I matched it with the corresponding AffiliateID in the affiliate's table (with all their information gathered when the webmaster/affiliate signed up) and would write a line to *another* table adding the payment amount. Once the total for an affiliate reached $10 or more, I'd send them a check. That's the simple concept. It'll depend on how your system is setup as to whether it'll work for you. Some variation ought to fit in, though. Hans On Mon, 14 Aug 2000, Ben Weinberger wrote: > Hi~ > I was wondering if anyone knew of some good affiliate programs written with > PHP so I can track the number of referrals we get from different > clients? Is this even something that PHP can do? > > Thanks, > -Ben > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > Hans Anderson ~ me@hansanderson.com PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL (800)397-9116 / (406)549-6524 | Databases, Flash Multimedia, http://www.hansanderson.com | Killer Audio Production, http://www.goofiness.com | Minty Fresh Breath.

« previous php.general (#11815) next »