php - How do I add an if / else? -


i using following code pass variable. if variable = a, nothing.

i want check if variable = a, nothing, if b, nothing, else something

<?     if($_get['pageid'] == 'a'){     } else {     include('header_image.php');     }    ?> 

above code have working correctly 1 vartiable.

how add if / else?

if($_get['pageid'] != 'a' && $_get['pageid'] != 'b'){ //do smth }


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -