PHP syntax error when using wpdb update?

you’ve got a simple typo, it should read

$dbresult = $wpdb->update($wpdb->posts, ...) ;

that is, $wpdb->posts with a ‘s’, instead of `$wpdb->post’.

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