WP user agent returns random variables

You can examine wp-includes/vars.php for specific logic which implements sniffing for these globals in WordPress.

In a nutshell the checks are very basic, especially considering user agent sniffing is inherently a mess.

If you need a more reliable implementation you would have to get one elsewhere (or code it yourself). That or use different technique entirely, such as detecting necessary context client–side with JavaScript.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)