Tell me, please, how to do it correctly?
There is a data1 database with the wp_users and the user_login string.
There is a data2 database with a money table and the string username and balance .
The user_login and username fields, though in different tables, are the same.
How to make a sample so that user_login chooses username and see what value in the line balance and output it to a variable? There are sketches that do not work.