On the back end I have two scripts...one being the membership script and another ticket draw script that works with the membership scripts database…
I have attached the install html file to give you more info in the ticket draw script.
What I need done is this.
There is an affiliate part of the membership script that ties in with the ticket draw script as the ticket numbers are tied to the members database ID's.
When a new member joins the site the membership script will assign a database affiliate ID to each user….these ID's are what the ticket draw script uses to pick a winner for a draw.
What I need done is when an affiliate recruits a new member I need another ticket added to there account so when I run a draw they have more chances to win. The more people a member recruits the more tickets they get....so add one more ticket/database ID to the affiliate member for every new member they have sign-up.
The Amount of Ticket a user has should also be viewable in the users members area.
Thanks