Referral System PHP

Posted by Liam on Stack Overflow See other posts from Stack Overflow or by Liam
Published on 2011-06-25T00:25:00Z Indexed on 2011/06/25 8:22 UTC
Read the original article Hit count: 186

Filed under:
|

I have a membership based website and im planning on implementing a referral system. My website is credit based, the idea is that if User X refers User Y, then User X gets 100 bonus credits.

Has anybody built a referral system before and if so what obstacles should I bear in mind? I've had a snoop round SO tonight but couldn't find any suitable answers.

My theory is to give each user a random string which is generated and stored in the DB when they sign up, The user will then be presented with a URL incl. that string which when they pass to somebody (User Z), User Z is then sent to a page, the page then uses the GET method to gather the Random string and update the DB Row they currently occupy, does this sound feasible or could it easily be breached?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql