04-04-2017, 08:52 AM
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.
change
if ($result->num_rows() === 0)
to:
if ($result->num_rows() == 0)
Boolen 0 is false and 1 is true.