• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fix a Num_row error

#1
Hey!!

Im trying to fix an error assciated with this code (  if($result->num_rows > 0);{

                while($row = $result->fetch_assoc()){
                    $data[] = $row;

                }
            }
        }
        return !empty($data)?$data:false;
    }
   

):


The error is:
A PHP Error was encountered

Severity: Notice
Message: Trying to get property of non-object
Filename: views/DB.class.php
Line Number: 72



How do I fix this, Ive been wrecking my brain trying to figure this out Sad 



Heart Heart ,
Mekaboo
Reply


Messages In This Thread
How to fix a Num_row error - by Mekaboo - 06-24-2019, 09:03 PM
RE: How to fix a Num_row error - by php_rocs - 06-24-2019, 09:59 PM
RE: How to fix a Num_row error - by Mekaboo - 06-25-2019, 11:19 AM
RE: How to fix a Num_row error - by neuron - 06-24-2019, 11:30 PM
RE: How to fix a Num_row error - by Mekaboo - 06-25-2019, 11:20 AM
RE: How to fix a Num_row error - by php_rocs - 06-25-2019, 03:49 PM
RE: How to fix a Num_row error - by Mekaboo - 06-25-2019, 08:02 PM
RE: How to fix a Num_row error - by php_rocs - 06-25-2019, 10:01 PM
RE: How to fix a Num_row error - by Mekaboo - 06-26-2019, 06:17 AM
RE: How to fix a Num_row error - by Wouter60 - 06-26-2019, 07:39 AM
RE: How to fix a Num_row error - by InsiteFX - 06-26-2019, 07:56 AM
RE: How to fix a Num_row error - by Mekaboo - 06-26-2019, 01:23 PM
RE: How to fix a Num_row error - by Mekaboo - 06-28-2019, 01:19 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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