Jump to content

Basic IF Statement Not Working


jaikob

Recommended Posts

Maybe I've been away from PHP too long, but my senses tell me this SHOULD work.

 

$ip = $_SERVER['REMOTE_ADDR'];
if(($ip != "XX.XXX.XX.XX") || ($ip != "XX.XXX.XX.XX") || ($ip != "XX.XXX.XX.XX")) {
mail(".....................................");
}

 

The dots represent params in mail function. This somehow returns true everytime. The XX's represent frequent IP's.

 

What is wrong?

Link to comment
https://forums.phpfreaks.com/topic/200344-basic-if-statement-not-working/
Share on other sites

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.