Buenas tardes a todos, soy nuevo en el foro y necesito de su ayuda con este error:
Notice: Trying to get property 'num_rows' of non-object in Login.php on line 76
la linea de codigo es:
// database query, getting all the info of the selected user (allows login via email address in the
// username field)
$sql = "SELECT user_id, user_name, user_email, user_password_hash
FROM users
WHERE user_name = '" . $user_name . "' OR user_email = '" . $user_name . "';";
$result_of_login_check = $this->db_connection->query($sql);
// if this user exists
line 76 if ($result_of_login_check->num_rows == 1) {
agradezco su colaboracion. gracias