Undefined index error when saving content on metabox

Resolved by following comment on Tutsplus Tutorial (link included):

In function save_meta(), replace this line:

if (!wp_verify_nonce($_POST['custom_meta_box_nonce'], basename(__FILE__)))

with this line:

if (!isset($_POST['custom_meta_box_nonce']) || !wp_verify_nonce($_POST['custom_meta_box_nonce'], basename(__FILE__)))

See full comment here.

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