Need a functions that adds (adm)/(mod) if current user is admin/moderator right after their username

You can ask for roles with current_user_can() too:

current_user_can( 'administrator' )

or

current_user_can( 'editor' )

There is no built-in role moderator.

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