Hallo, i was wondering what's the technical term of an if statement doing two or more checks? (($UserName == 'MyName') && ($DB_HashedPassword == $HashedPassword)) Code (markup):
You can use if elseif statment or switch statment <?php //if else if statment $level = $_REQUEST['level']; if($level == "admin") { echo "Admin Level"; } elseif($level == "mod") { echo "Mod Section"; } else { echo "defualt section"; } //switch statements switch($level) { case "admin": echo "Admin Level"; break; case "mod": echo "Mod Level"; break; default: echo "default level"; break; } ?> PHP:
Hi, Well you can do like this: if(($test=="") && ($test!="")) { } you can add more than two conditions but you need to put "add" to check those condition.. Same case is with the OR as well Regards, Stylesofts Developing Team