Mysqli_Num_Rows() Expects Parameter 1 To Be Mysqli_Result, Boolean Given Array in Effortless E-Commerce with PHP and MySQL Posted March 19, 2019 I am also getting an error with my code while trying to display something on the page The error is WARNING: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\ECE\ramonsys\include\database.php on line 98 the code is public function num_rows() { $cur = $this->executeQuery(); return mysqli_num_rows($cur)); } what can I do to fix the problem? Thank you!
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 with my code while trying to display something on the page
The error is
WARNING: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\xampp\htdocs\ECE\ramonsys\include\database.php on line 98
the code is
public function num_rows() {
$cur = $this->executeQuery();
return mysqli_num_rows($cur));
}
what can I do to fix the problem? Thank you!