• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Fatal error: Call to a member function num_rows() on boolean

#2
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. 


 
Reply


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.