Can’t manage to display an uploaded picture (uploaded from a custom button) in the front end

simple answer to this, if you wan to display the image use:

 $options = get_option('ud_options');
 if (isset($options['file'])) {
    echo "<img src="https://wordpress.stackexchange.com/questions/16766/{$options["file']['url']}' />";
 }

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