title: Show text from rows in MySQL database equal 0 and 1?
body: <p>I can't get my code to show text from the MySQL database where it equals 0 and 1. Where it says "/* 1 = logged in */" I want it to show the results from where 'privileges' equals 0 and 1, but I can't find out how.</p>
  
  <pre><code>   &lt;?php
  if (isset($_SESSION['username']))
     {
     if($_SESSION['privileges'] == '1') /* 1 = logged in */
      {
      $sql="SELECT * FROM `navbar`";
      $sql2=mysql_query($sql)
            or die("Couldn't etablish connection with
                   the server or username wasn't found 
                   in the database.");
      $count=mysql_num_rows($sql2);
      if($count &gt; 0)
       {
        while ($row = mysql_fetch_assoc($sql2)) {
          if(($row['privileges'] == '0') or ($row['privileges'] == '1'))
            {
             echo '&lt;li&gt;&lt;a href="', $row["url"], '"&gt;', $row["text"], '&lt;/a&gt;&lt;/li&gt;';
            }
        }
       }else{
            die("Could't find 'navbar' table in database.");
       }
      }
      else if($_SESSION['privileges'] == '2') /* 2 = vip */
           {
            include('./navbar_vip.php');
           }
            else if($_SESSION['privileges'] == '3')  /* 3 = supporter */
             {
              include('./navbar_support.php');
             }
              else if($_SESSION['privileges'] == '99')  /* 99 = administrator */
               {
               include('./navbar_admin.php');
               }
        }
  ?&gt;
  </code></pre>