Issue with checked() echoing on to page

By default, checked echoes. If you set the (currently empty) third parameter to false, it should work as expected. Change the line to:

$$sku = isset( $instance[$sku] ) ? checked( (bool) $instance[$sku], true, false ) : false;

More info: http://codex.wordpress.org/Function_Reference/checked

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