Cannot retrieve theme options on index.php

Try passing ‘my_theme_options’ directly to get_option() function instead of storing it in variable as following.

$options = get_option('my_theme_options');

Instead of

global $option_name; 
$options = get_option($option_name);

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