How to check if a custom user profile field is empty

You can check the user meta for the key you want:

if ( get_user_meta('phone') !='' ) { 
echo "Your phone is not set";
}

else {
comment_form();
}

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