Nonce for Trashing Item

I found the answer – this contains sample code which helped me resolve the issue.

https://codex.wordpress.org/WordPress_Nonces

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