title: PHP loop while not empty array
body: <p>I am a beginner to php/sql so bear with me if I'm missing something.</p>
  
  <p>I have a database that I'm querying but not all the rows are complete. I'm trying to figure out which rows have a value in a certain column.  Essentially what I have now is:</p>
  
  <pre><code>while (!empty($result['c1'])) 
  {
  echo $result['c2'];
  }
  </code></pre>
  
  <p>The server doesn't seem to like this.  Any thoughts?</p>