In my script, I have two variables that hold numerics - I simply need to compare the two values (that have already been trimmed for whitespace) and let the script proceed is true...
My if statement looks like this...
if (!$TheSessionUserLoggedIn['MemberID'] == $ThePhotoOwnerMemberID) {
(do the action...)
}
In summary, if the two values ARE NOT EQUAL, run the code in the middle...right?
Yet for some reason, with the test scenario I have, its validating incorrectly? I've echo'd out the value of the two variables (in my most recent example, the two distinct values were '1' and '12') and they ARE different, and yet it doesn't run the code within the IF statement?
Am I being silly here? Should I go to bed and look again tomorrow morning?
I'd greatly appreciate your help!