$sql="SELECT * FROM phptrip WHERE destination=`Netherland`";
$queryfire = mysqli_query($con,$sql);
var_dump($queryfire );
//find the number of records returned;
if(!$queryfire || mysqli_num_rows($queryfire) == 0){
**$num = mysqli_num_rows($queryfire); //getting error in this line**
}
echo "<br> Total number of records found in the database is ".$num." !!!<br>";
?>
}
I AM GETTING ERROR IN THIS LINE **$num = mysqli_num_rows($queryfire); **