Displaying Content for a specific set?

Discussion in 'PHP' started by misohoni, Jul 22, 2012.

  1. #1
    Hi, my page setup is like this:

    shoot.php?setID=1

    But this doesn't work:

    <? if ($_GET["setID"] == "1") { ?>
    abc
    <? } ?>

    How could I fix this?

    Thanks
     
    Solved! View solution.
    misohoni, Jul 22, 2012 IP
  2. #2
    1. Try full tags: <?php ?>, not <? ?>
    2. Make print_r($_GET) before your code.
     
    programming.russia, Jul 23, 2012 IP