That was the problem. I need the ! statement at the beginning of both conditions. So in the end the following did the trick:<div><?php if (!(arg(1) == '39' || arg(1) == '49')): ?><br><div class="im"><div> Content </div><br>
<?php endif; ?></div><div class="im"><br></div><div class="im">Thank you so much for all your help everyone.</div><br><div class="gmail_quote">On Mon, Jul 12, 2010 at 8:17 AM, Earnie Boyd <span dir="ltr"><<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Chris McCreery wrote:<br>
> Right now I have this:<br>
><br>
> <?php if (arg(1) != '39'): ?><br>
> <div> Content </div><br>
> <?php endif; ?><br>
><br>
> This works just fine but when i try to add in a second arg(1) and OR<br>
> statement it doesn't work. Any ideas?<br>
><br>
<br>
</div>I made this mistake often when I first started programming. Use AND and<br>
not OR when using !=. Or you could use the alternative method as show<br>
below.<br>
<br>
<?php if (arg(1) != '39' && arg(1) != '49'): ?><br>
<div class="im"><div> Content </div><br>
<?php endif; ?><br>
<br>
</div>ALTERNATIVE:<br>
<br>
<?php if (!(arg(1) == '39' || arg(1) == '49')): ?><br>
<div class="im"><div> Content </div><br>
<?php endif; ?><br>
<br>
</div>--<br>
Earnie<br>
-- <a href="http://progw.com" target="_blank">http://progw.com</a><br>
-- <a href="http://www.for-my-kids.com" target="_blank">http://www.for-my-kids.com</a><br>
<font color="#888888">--<br>
</font><div><div></div><div class="h5">[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Chris McCreery<br>
</div>