Function to see how many plugins on a site need updating

I don’t know what your “system” as a whole is intended to look like but the function you want is wp_update_plugins() in wp-includes/update.php.

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