Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Jul 2013, 04:21 PM   #1
HyperActive Warrior
 
Join Date: 2012
Posts: 119
Thanks: 18
Thanked 1 Time in 1 Post
Default
Would I need the MYsql or could i just use cookies?
Share on: 
fb share twitter share gplus share more share

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.
Christopherson is offline  
Unread 11th Jul 2013, 04:51 PM   #2
Warrior Member
 
coops123's Avatar
 
Join Date: 2011
Location: Northampton
Posts: 18
Thanks: 6
Thanked 4 Times in 4 Posts
Default
Re: Would I need the MYsql or could i just use cookies?
Share on: 
fb share twitter share gplus share more share

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.
coops123 is offline  
The Following User Says Thank You to coops123 For This Useful Post:
Unread 11th Jul 2013, 04:57 PM   #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
Default
Re: Would I need the MYsql or could i just use cookies?
Share on: 
fb share twitter share gplus share more share

You would have to use MYSQL, or a similar database.

Steve
seasoned is offline  
Closed Thread


Bookmarks

Tags
cookies, mysql


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:36 PM.