I hope you didn't do that on a live site cuz my guess is you have zapped your max logged in users now.
The best thing you can do is start troubleshooting it by spiting out variables and see exactly what is going through there. Do you know if your code went through the if or else path? Find that out first. Then start doing other little things to find exactly what is going on.
|