title: Simple Issue with PHP While Loop
body: <p>I have this</p>
  
  <pre><code>mysqli_select_db($connect,"users");
  
  $response = "Select * from revbut where onuser='$u'";
  $rquery  =  mysqli_query($connect,$response);
  $norows = mysqli_num_rows($rquery);
  
  
  
  
  
  
  while($responseanswer=mysqli_fetch_array($rquery)){
  
  
  if(json_encode($responseanswer['response']=='approve'))
  {
  include('response-2.php');  
  }
  
  else if(json_encode($responseanswer['response']=='reject'))
  {
      include('response-3.php');
  }
  else
  {
  echo "Nothing in here. ";   
  }
  }
  </code></pre>
  
  <p>in database, there are two fields. So one is approve, whereas the other is reject. But the php is including the response-2.php file twice. why so?</p>