How to save multiple metaboxes?

You can use one save function.

wp_nonce_field function creates hidden field with action.

You can use wp_nonce_field for two metaboxes if you want different actions for two metaboxes.

Please go throgh below link for more information

http://codex.wordpress.org/Function_Reference/wp_nonce_field

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