title: Page wont load and server crashes during PHP while loop
body: <p>I am trying to run a php script that says basically, whilst two cells in my MySQL database are empty (t_trailerarrival and t_endsort), do something.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>&lt;?php
  // Start Session, include authentication and dBConnection script
  session_start();
  include 'dbcon.php';
  include 'sql_actuals.php';
  $current_time = date("G"); 
  
  while($query9_row['a_trailerarrival'] == NULL &amp;&amp; $query10_row['a_endsort'] == NULL) {
      echo "Trailer Arrival";
  }
  </code></pre>
  
  <p>The $queryx_row['abc'] are all in the sql_actuals script that is included into this script.</p>
  
  <p>For some reason, every time i run this script - my browser wont load the result (just loads for ever) and then my website at windows azure seems to crash and take a few minutes to restart.</p>
  
  <p>Could someone please advise if there is a massively obvious error with my script? or point me at what the possible issue could be.</p>
  
  <p>Many thanks in advance.</p>
  
  <p>FYI, i have tried adding a line <code>sleep(1);</code> so that it gave the server it runs off a delay before having to run the program again but no luck.</p>