Where do i create my own function in wp-admin

There is no function file in “wp-admin” folder, you do not need to edit that folder.

WordPress has Plugin api to do that,
http://codex.wordpress.org/Plugin_API/

Create a plugin and write function in your plugin file.

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