Prevent attachment from being deleted

Have you seen this ? https://stackoverflow.com/a/28429009/3967385

Actually you can’t fire JavaScript with php simply like that.

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