Create widget in dashboard displaying a custom user field?

I solved the issue. Here’s a link where I explain how I solved it and how the final code looked like:

https://wordpress.org/support/topic/customize-dashboard-widgets-for-individual-users-1?replies=11

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