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

twig - Using Twigbridge in a Laravel 5.1 Package -

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

php - Symfony 2: "No route found for "GET /" - error on fresh installation -