Display results depending on user
I've made a webshop and been busy on quiet a lot programming now, I'm a beginner programmer and been lurking around the forum and decided to register.
I've tried my best and I've googled around and really couldn't find it, so it seems like this is my last resort, haha.
For the people that are going to help me, try to help me or even take the time to read this, thank you a lot, it means a lot to me.
Currently my webshop is down for maintenance and could use your help a lot.
Basically what I need is :
Displaying specific results for each user, so there is a page with results, let's say results.php
And there is a page checkout.php for example, now in the checkout page we have a referrer field.
If i'd fill in at the referrer field PERSON A and submit the form, it saves the submitted information to the mysql database.
And if another person did this for PERSON A and later on for PERSON B
I want Person a to see the results only if he got referred in results.php
Sorry for my bad explaining even made an image to get the picture.