Thread:Project:Support desk/Fetch value from database and print it!

Hi there,

I´m trying to retrieve data from the database which contains values for the logged in users, and at this point i´m just trying to print the values to make sure I managed to retrieve the data I wanted. Alltough below code prints 'Hi' but not the user_name and approved_account value for the logged in user. How should I do to fetch the values from the database and print them?