How to plugin function code move to theme function.php ? I’ve tried below code but not working [closed]

One possible issue is that the file should be named functions.php, not function.php as you have consistently called it.

See Functions File Explained on the Codex.

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