how to send email to administrator when someone edit post

Here in WordPress.org you have a example to do that:
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_insert_post

Look also here to see when it modified
https://codex.wordpress.org/Plugin_API/Action_Reference/save_post

Regards.

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