Log in

View Full Version : Stupid Question Time


amykhar
05-28-2005, 02:24 AM
Before I start plowing through code, I figured I'd ask in case anybody knows off the top of their head.

Is there a function that I can use that will return a user's info - or at least their user name, if passed their userid?

If so, what is the name of the function and what file do I need to include to use it?

Thanks,
Amy

AN-net
05-28-2005, 02:59 AM
you could simple include global.php and have access to $bbuserinfo

amykhar
05-28-2005, 03:15 AM
Nope. I'm not looking for the logged in user's name. Just the name associated with an arbitrary userid. I know the query to use. Just wondered if there was a function call built in too.

Marco van Herwaarden
05-28-2005, 09:40 AM
The function 'fetch_userinfo' in ./includes/functions.php

amykhar
05-28-2005, 12:46 PM
Thank you :)

Amy

Marco van Herwaarden
05-28-2005, 02:04 PM
No problem Amy. ;)