That was the problem. I need the ! statement at the beginning of both conditions. So in the end the following did the trick:<div>&lt;?php if (!(arg(1) == &#39;39&#39; || arg(1) == &#39;49&#39;)): ?&gt;<br><div class="im">&lt;div&gt; Content &lt;/div&gt;<br>

&lt;?php endif; ?&gt;</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">&lt;<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>&gt;</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>
&gt; Right now I have this:<br>
&gt;<br>
&gt; &lt;?php if (arg(1) != &#39;39&#39;): ?&gt;<br>
&gt; &lt;div&gt; Content &lt;/div&gt;<br>
&gt; &lt;?php endif; ?&gt;<br>
&gt;<br>
&gt; This works just fine but when i try to add in a second arg(1) and OR<br>
&gt; statement it doesn&#39;t work. Any ideas?<br>
&gt;<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>
&lt;?php if (arg(1) != &#39;39&#39; &amp;&amp; arg(1) != &#39;49&#39;): ?&gt;<br>
<div class="im">&lt;div&gt; Content &lt;/div&gt;<br>
&lt;?php endif; ?&gt;<br>
<br>
</div>ALTERNATIVE:<br>
<br>
&lt;?php if (!(arg(1) == &#39;39&#39; || arg(1) == &#39;49&#39;)): ?&gt;<br>
<div class="im">&lt;div&gt; Content &lt;/div&gt;<br>
&lt;?php endif; ?&gt;<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>