PDA

View Full Version : Get User info based on ID


Fender963
04-11-2007, 08:09 PM
Is there a way to return user information without having to query the database?

For example so I want the username of the user with userid 22. I could query the user database but doesn't a cache exist with this information?

- Kyle

Well I figured it out.

fetch_userinfo($id).

I hope this helps someone.

S2KingKtulu
05-22-2007, 03:19 PM
thnx

byon
05-22-2007, 04:31 PM
thnx

i thought something like $vbulletin->userinfo['username'] works as well? why is there a need to fetch_userinfo again?