Solved

How to make an affiliate script with 10 levels

Posted on 2004-09-07
2
204 Views
Last Modified: 2008-01-09
I need to make an affiliate script.  Can someone show me the code that I would use to do this.  I have some scripts with examples, but they stink.  

I want to have 10 levels and  pecentages of commission.

Such as 30, 10, 10, 10, 5, 5, 5,5,5, 1

I am totally lost.

Thanks ahead of time,

Chad
0
Comment
Question by:hewtluca
2 Comments
 
LVL 3

Accepted Solution

by:
kaitou earned 250 total points
ID: 12001356
I imagine the main thing would be to have a database of all affiliate id's, and their commision level.,  and a separate table that lists percent per level. Then once they are sent to your site with an affiliate id, you would need to set a cookie withthe id of their refferer, and later read the cookie when the purchase is made. Then during the purchase, you can either keep a table of purchases coupled with refferer id's, and at the end of the month count up what each affiliate has made.

This would be a moderately straightforward script, but I imagine it would take some time to write. Those are the basic steps it would need to follow though.
0
 
LVL 2

Author Comment

by:hewtluca
ID: 12206598
I did not get what I wanted, but thanks for being the only one who tried Kaitou.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question