Hello,
I've been coding PHP for a while now and have never run into this problem. PLEASE help me out...I have a pretty good site goin but this code is the 'backbone' of it, and it isn't working!
Here is the problem...
I have a referral system for my site. When sombody signs up their referrer code is entered into the 'referrer' field of my MySQL db. This works fine.
Then when their referrer logs into their account, I execute a PHP script which finds all of the places where their referrer code is in the db and counts them up to give a referral total. This worked fine until last night. For some reason, many of my members reported that their referral totals show '0' when they log-in. Their referral code is still in the db the same number of times as it was last night, but now their stats page reads '0' instead of, say, 17 (if their ref code showed up 17 times in the db).
Do any of you have ANY idea why this would happen?
If I go to my phpMyAdmin page I can manually edit the records so they work. I can just click 'Edit' and then 'Go' on a record, and then my login script will detect the presence of the referrer code. It is the same record as before, but it works after I have "Edited" it (even though I didn't change anything).
PLEASE give me some ideas as why this would happen and hopefully a way to correct it.
I can give you the code I am using if you want, but I think I have explained the problem pretty well.
Thanks so much!
Barry