| | #1 |
| HyperActive Warrior Join Date: 2012
Posts: 119
Thanks: 18
Thanked 1 Time in 1 Post
|
I want generate more traffic through a referral system with my users, but I don't want to require a sign up, so this is what I want to do. I want to give them a referral link. In order to unlock the rest of the page they have to get 10 unique clicks on their referral link, and each time they get a click they can refresh their page an see how many clicks they have. I'm very new to php but I figured I could learn it through projects like this one and other projects I have but would I need to learn php, and sql in order to do this or could I somehow use cookies instead? Once again.. I'm new so if i need to go into more detail i certainly can. |
| |
| | #2 |
| Warrior Member Join Date: 2011 Location: Northampton
Posts: 18
Thanks: 6
Thanked 4 Times in 4 Posts
|
You will need a database to track each referral link and how many unique clicks they have received. In regards to the user sign up you could set a cookie for the user which contains the referral code in its value then the php page would read the cookie and show how many clicks it has received. Once the php page detects the referral code has been clicked 10 times the content would be shown. |
| |
| The Following User Says Thank You to coops123 For This Useful Post: |
| | #3 |
| VIP Warrior War Room Member Join Date: 2003 Location: , , USA.
Posts: 2,356
Thanks: 7,692
Thanked 2,892 Times in 2,434 Posts
|
You would have to use MYSQL, or a similar database. Steve |
| |
|
| Bookmarks |
| Tags |
| cookies, mysql |
| |