Update custom table on metabox POST

Variable scope – you need to globalise $wpdb before you can use it inside your function:

function save_metaboxes() {
    global $wpdb;

    // Rest of your code
}

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