-2

"if ($result->num_rows > 0)" Trying to get property of non-object in C:\xampp\htdocs\view.php on line 17 0 results

this thing keeps coming and i donno what to do next?

1 Answers1

-2

May be your $result is null Please check $result before get num_rows Use:

if (!is_null($result) && $result->num_rows > 0)

Instead of:

if ($result->num_rows > 0)
Titi
  • 21
  • 4