خرید بک لینک
I have an error on the line with the ** what is the problem? The error comes up with Fatal error: Call to undefined method mysqli_stmt::get_result()

Code:

public function getUserByEmailAndPassword($email, $password) {
        $stmt = $this->co->prepare('SELECT c.gamename, c.loc_lat, c.character_id, c.loc_lng, c.hp, c.maxhp, c.money, c.visibility_radius, l.level_id, u.user_id, u.encrypted_password, u.name, u.birthday, u.creation_date, u.gamename, u.salt FROM users u JOIN characters c ON u.user_id = c.character_id LEFT JOIN levels l ON c.xp >= l.xp WHERE u.email = ? Limit 1;');
        $stmt->bind_param("s", $email);
        if ($stmt->execute()) {
 **        $user = $stmt->get_result()->fetch_assoc();
            $stmt->close();
            $salt = $user['salt']; 
            $encrypted_password = $user['encrypted_password'];
            $hash = $this->checkhashSSHA($salt, $password);
            if ($encrypted_password == $hash) {
                return $user;
            }
        } else {
            $stmt->close();
            return NULL;
        }
    }

برچسب: نویسنده: آیلین رضوانی تاريخ: شنبه 20 خرداد 1396 ساعت: 4:51

صفحه بندی