It has been a long while since I've been here, but I have hit a wall/mind block/ whatever you want to call it.
This should be simple, but drawing a complete blank.
I have an affiliate website where my clients can refer us to their friends and receive our gratitude through free products... But I need to be able to track who referred who.
I've done it years ago, but not remembering how.
I want to use the base domain so it goes to index.php
so, it would be DomainName.com/'Username' where 'Username' is unique to each client.
When someone goes to that URL, I need to be able to capture that 'Username' in a variable in the index.php script so I can use it to access the DB to record the referral. But at the same time, they need to be able to view the index.php page to enter the site.
Probably a long explanation for a simple request.
Could someone head me in the right direction?
I've invested almost 10 hours searching the web and reading numerous articles, etc and feel like I know less now about how to do this then I did before I started...
Thanks in advance for anyones positive feedback and direction.