Welcome Guest, Not a member yet? Register   Sign In
PHP Fatal error: Call to a member function num_rows() on boolean
#3

(04-04-2017, 08:52 AM)koficypher Wrote: Reduce the number of equal to sign to two instead of 3.
change 
if ($result->num_rows() === 0

to:

if ($result->num_rows() == 0

Boolen 0 is false and 1 is true. 


 

This won't change anything.

It's not the num_rows() return value that's the problem.
It's that $result is not an object at all, meaning that the query errored.
Reply


Messages In This Thread
RE: PHP Fatal error: Call to a member function num_rows() on boolean - by Narf - 04-04-2017, 10:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB