title: php if statment for showing certain blocks of html
body: <p>I am currently trying to check my db table to see if a user's level is equal to or less than 10, if so then show an entire html list, if not and is equal or less than 5 show only the remaining part of the list. Here's where I started:</p>
  
  <pre><code>&lt;?php
  
  $levels = mysql_query("SELECT level FROM users");
    if ($levels &lt;= 10) {
  
  ?&gt;
  
  html list
  
  &lt;?php 
  
  if ($levels &lt;= 5)
  
  ?&gt;
  
  html list
  
  &lt;?php
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>I am trying to wrap my head around it, I just can't seem to get it.</p>