the correct way to use options from settings page [closed]

get_option( $option ) returns an array. You need to get access to that array, and then get the keys/values inside of it.

Try this instead:

$value = get_option( 'my_option_name' );
echo $value['my_option'];

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