PHP doesn't see 2 equal strings -
So I'm busy on the verification system when the player of the game puts a sentence in his position: HT -N5I4-S3ZI-GU6A
and my script checks whether this is similar to the code in my DB. If so, then this has proved to be their account. Because I have experienced that people make accounts under fake names.
When I resonate the code in my DB, it resonates: HT-N5I4-S3ZI-GU6A
and my test players in mission One: HT-N5I4-S3ZI-GU6A
This is the exact code, but when I want to compare them like this: ($ _ session ['user' ] ['Email_activation'] == $ functions-> getMotto ($ _ session ['user'] ['username'])) {resonate "works"; } Else {echo "does not work"; }
This ehos 'does not work' Did I use the wrong equation operator? Or any other mistakes?
Thanks
Try this code
< Code> if ($ _ session ['user'] ['email_activation'] === $ functions-> getMotto ($ _ session ['user'] ['user name'])) {dumb "works"; } Else {echo "does not work"; }
Thanks.
Comments
Post a Comment