SoireeExtreme Posted April 18, 2007 Share Posted April 18, 2007 Hi. I have this a code I'm trying to use to check the database to see if someone has validated their account or not. If the person hasn't validated their account then its suppose to tell them they haven't and they can do so. And if they have validated their account then it doesn't display anything. But my problem is that it isn't working. I've used this exact coding before on other things and its worked find but it won't now. Could someone give it a quick look see and maybe help me out? Here is the code. <? if($userstats3['validated']='no') { echo" Your are currently in Quarantine. Please validate your account here."; } else { echo"NOTHING TO BE DISPLAYED HERE"; } ?> Link to comment https://forums.phpfreaks.com/topic/47543-solved-quick-question-quick-help/ Share on other sites More sharing options...
Orio Posted April 18, 2007 Share Posted April 18, 2007 You need to use == and not = in your if. Orio. Link to comment https://forums.phpfreaks.com/topic/47543-solved-quick-question-quick-help/#findComment-232048 Share on other sites More sharing options...
SoireeExtreme Posted April 18, 2007 Author Share Posted April 18, 2007 Actually I've tried it that way too. For some reason it didn't work either when I did that. I'm not sure though, but I think there just might be a delay in the updating of the database or something. After a few minutes it seems to work but then when I change the database or the code from yes to no thats when it doesn't seem to want to work. Any ideas why that may be? The possible delay as I said maybe? Link to comment https://forums.phpfreaks.com/topic/47543-solved-quick-question-quick-help/#findComment-232050 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.