i have facing problem in php code. the error is given below:
mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in directory name
the php code is:
<?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'];
}
?>
can any one help?