"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?
"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?
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)