title: Hiding a div upon login with php
body: <p>I am trying to hide a div once a user has logged into there account of my online store (built with cartweaver 4 php) but i just cant seem to get it to work.</p>
  
  <p>the php code for defining wether the user is logged in or not is as followed:</p>
  
  <pre><code>if(!strlen($_SESSION["cwclient"]["cwCustomerID"]) ||
      $_SESSION["cwclient"]["cwCustomerID"] === 0 ||
      $_SESSION["cwclient"]["cwCustomerID"] === "0" ||
      $_SESSION["cwclient"]["cwCustomerType"] == 0 ||
      (isset($_SESSION["cwclient"]["cwCustomerCheckout"]) &amp;&amp;
         strtolower($_SESSION["cwclient"]["cwCustomerCheckout"]) == "guest"))
  </code></pre>
  
  <p>and the div i would like to hide upon login, which contains a table, have been given an id and class of:</p>
  
  <pre><code>  &lt;div id="newcustomertable" class='newcustomer'&gt;
  </code></pre>
  
  <p>I have tried applying this method using css: <a href="https://stackoverflow.com/questions/7020873/show-hide-div-if-if-statement-is-true">Show Hide div if, if statement is true</a></p>
  
  <p>but that ended up giving me an undefined variable error on my testing server.</p>
  
  <p>I admit i am a bit of a php newbie, so if anyone who is able to make more sense of this could help out and possibly find a solution it would be much appreciated.</p>
  
  <p>Thank you. </p>