Jump to content

[SOLVED] Quick Question. (quick help??)


SoireeExtreme

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.