I have never coded php before and I really need this very simple script.
so let me explain what I need.
user comes to my website via affiliate link so when they finished redirecting
the url will look like this
http://website.com/lp/index.html?sub=1&customer_id=1039be6e23b4420c3e1063dc44a04d
now I have a download link on my website
On download click
check for duplicate ip address from database. if not duplicate
capture sub=”” & customer_id=”” from the address bar.
save to database with IP Address (this for tracking)
and redirect immediately to the download link
if the ip is not duplicated
http://dl.website.com/download/downloadpop.aspx?id={Customer_id}
if it’s duplicated
http://dl.website.com/download/downloadpop.aspx?id=beenbefore
Thank you so much!
This is rather broad, and impossible to answer properly without knowing any details about your database structure, but here’s how the basics of this would work: