title: While Loops and Multiple Conditions
body: <p>Is it possible to write multiple conditions in a while loop? If not, what is an alternative? I tried it and was returned with an error relating the line of code that sets up the conditions for the while loop. Here is an example of what I mean.</p>
  
  <pre><code>$s = 1;
  
  while ($result_row = mysql_fetch_assoc($query) &amp;&amp; $s &lt; 5)
  {
  echo $result_row['id'];
  $s++;
  }
  </code></pre>