Would I need the MYsql or could i just use cookies?

2 replies
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.
#cookies #mysql
  • Profile picture of the author coops123
    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.
    {{ DiscussionBoard.errors[8269926].message }}
  • Profile picture of the author seasoned
    You would have to use MYSQL, or a similar database.

    Steve
    {{ DiscussionBoard.errors[8269939].message }}

Trending Topics