wp_options not returning value for logged out users?

I suspect wp-includes/option.php is not being loaded in your environment. You must have the whole WordPress environment loaded to use get_option(). So e.g. per

include_once 'wp-load.php';

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