I need someone to take a look at the code I've provided
in the attached file and fix it so it works correctly.
The code is to add points to the members account when they click on a link and add points to the referring members account.
The points get added to the members account when they
click on the link but not to the referring members account.