Using Nonce for my Form

I figured out what I needed to do. I needed

if(isset( $_POST[ 'tdgmt_plugin_noncename']) && wp_verify_nonce( $_POST['tdgmt_plugin_noncename'], plugins_url( __FILE__))){

to be above

 if($screen->base == 'settings_page_tgdmt_options_page'){

as well as fixing my typos of

tdgmt_plugin_noncename

instead of

tgdmt_plugin_noncename

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