I have a problem with my if statement.
I wish to archive:
– If the sender id matches the user id = grant access
– If the receiver id matches the user id = grant access
Currently I just have this:
if($pmData['sender_id']!=$userdata['id'] && $pmData['receiver_id']!=$userdata['id'])
redirect("?i=a");
But as you can see, in this statement BOTH sender id AND receiver id much matches the user id.
How can I archive the other?
Using
or/||instead of&&?