Jump to content

Referrals


brown2005

Recommended Posts

I want to track referrals, with 2 levels,

 

1. people you refer

2. people they refer

 

Would I be best to include a field in the members table say referredby and then this will be the ID of the person who referred you, or would it be better to have a spearate table (referrals)

 

referrals_id

referrals_by

referrals_of

referrals_date

 

like that.

 

thanks

Link to comment
Share on other sites

Since a person can assumably refer multiple other people using a single table wouldn't really work. You would end up with one field populated by multiple values, which is something to avoid. Personally I'd probably just have a Referrals table. That way you can find all required information by simply searching the referrals_by and the referrals_of columns.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.