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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -