title: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in directory name
body: <p>i have facing problem in php code. the error is given below:</p>
  
  <pre><code>mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in directory name
  </code></pre>
  
  <p>the php code is:</p>
  
  <pre><code>&lt;?php
  $edit_record = $_GET['edit'];
  
  $query = "select * from std_reg where student_id='edit_record'";
  
  $run = mysqli_query($conn, $query);
  
  while($row = mysqli_fetch_array($run))
  {
  $id = $row['Student_id'];
  $name = $row['name'];
  }
  ?&gt;
  </code></pre>
  
  <p>can any one help?</p>