Mysqli_Num_Rows() Expects Parameter 1 To Be Mysqli_Result, Boolean Given Array in Effortless E-Commerce with PHP and MySQL Posted October 31, 2018 I am also getting an error in my code while searching something.. I am sending my code please check it once and then revert me back with the correct code. <?php $result = mysqli_query($con,"SELECT * FROM `packages` WHERE `Name`, `Cities`, `Destinations`, `Duration`"); $rows = mysqli_num_rows($result); echo $rows; ?> Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\search\bar.php on line 29 this error is coming .. please resolve this error
Mysqli_Num_Rows() Expects Parameter 1 To Be Mysqli_Result, Boolean Given Array
in Effortless E-Commerce with PHP and MySQL
Posted
I am also getting an error in my code while searching something..
I am sending my code please check it once and then revert me back with the correct code.
<?php
$result = mysqli_query($con,"SELECT * FROM `packages` WHERE `Name`, `Cities`, `Destinations`, `Duration`");
$rows = mysqli_num_rows($result);
echo $rows;
?>
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs\search\bar.php on line 29
this error is coming .. please resolve this error