I’m trying to do something that should be very easy, but I keep getting a syntax error that hoses my entire page. I just want to add a bit of code that will exclude a banner from certain item IDs. Here is the code that I wrote. ID 231 is the one I’m trying to exclude, ie., the page I don’t want these banners to show on. Any ideas on getting past the error?
<? if ($IID != 231){ ; ; } if (isset ($selects)) { ?>it looks like you properly ended the lines with the semi colon, you just forgot the echo and to wrap the text in (in this case) single quotes. below I also combined what would have been two echo statements into one (with only one ending semicolon)
so for this since it looks like you have more code below it, i’d do this:
[php]if ($IID != 231){
echo ’
}
if (isset ($selects)) {[/php]