• Could somebody help me please?
    The following code crushes down my webpage:

    <?php if($_SERVER[‘QUERY_STRING’]==”page_id=15″)||($_SERVER[‘QUERY_STRING’]==”page_id=12″) : ?>

    <?php endif; ?>

    I’ve tried many combinations and nothing works ??
    Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter agnkol

    (@agnkol)

    <?php if($_SERVER['QUERY_STRING']=="page_id=15")||($_SERVER['QUERY_STRING']=="page_id=12") : ?> 
    
     	<ul>
            		<li><a href="?page_id=24">Wieliczka</a></li>
    			<li><a href="?page_id=25">Niepo?omice</a></li>
    			<li><a href="?page_id=26">Gdów</a></li>
    	</ul>
    <?php endif; ?>

    crushes down my webpage

    any error message?

    try to add some brackets around the if:

    <?php if(($_SERVER['QUERY_STRING']=="page_id=15")||($_SERVER['QUERY_STRING']=="page_id=12")) : ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP if statement problem’ is closed to new replies.