Solved

How to make an affiliate script with 10 levels

Posted on 2004-09-07
2
201 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now