This is a odd request and I won't get into the background for it to much. I'm querying a database and it returns a number which is the userid.
This variable contains the userid (for example 82)
$result->data;
What I need to do is convert that number to the username that matches that userid. Then echo out the username.