How to pass data from page to widget functions?

It should be possible to read the global $post variable in your widget function. This will contain all information about the post (or page) displayed on the current page.

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