<?php
$con = mysqli_connect('localhost','root','','db') or die('Error connecting to MySQL server.');
if(isset($_POST['rollNo'])){
$rollNo = $_POST['rollNo'];
$query = "Select * from table where ROLL_NUMBER LIKE '$rollNo'";
$select = mysqli_query($con, $query);
printf(mysqli_query($con));
while ($row = mysqli_fetch_array($select)) {
echo $row['FIRST_NAME'];
}
}
?>
It is showing the error that
mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given.