musername isnt a valid field in the user table... if you want to use ['musername'] from $userinfo, you need to pass $userinfo into fetch_musername first; then it adds the ['musername'] field into the $userinfo array. If you dont run the fetch first, then you will get empty data...
However, this has nothing to do with my problem. My problem is that I dont have $userinfo to begin with in the spot I am tryign to use this. All I have is the userID. I have tried passing $userid into fetch_musername to get $userid['musername']; but it doesnt work.
|