I do not know if the bug is PHP or Database related, but the file is written in PHP, so i post it here. I own a PTC site. On that site, Standard members get paid 0.005$ per referral click. Premium users should earn 0.015$ per referral click. But they only earn 0.005$ from their referrals. Instead, the referrer OF the premium member earns 0.015$ per click that the premium member makes... Earnings in the wrong level I cannot seem to find the bug and where to fix it. U can read the script on http://www.buxp.info/succesp.txt My database should be inserted correctly. Into tb_config I inserted "premiumreferalc" and howmany = 1 The script reads "Premiumclick" correctly, so there the problem does not lie. If you can fix the bug or help me fix this problem, I will donate 5$ to you If you need more files or need to chat with me to fix this, pm me please. I hope someone can help!