Quote:
Originally Posted by ragtek
You should use fetch_userinfo
PHP Code:
$fetchuserid = 2; fetch_userinfo($fetchuserid);
fetch_musername is called by fetch_userinfo and the first parameter needs to be a array with all the userdata, so its much easier to use fetch_userinfo
|
The fetch_userinfo function is pretty much the same thing as doing a SELECT statement, it adds a query per user. I want to do this WITHOUT adding any queries. Thanks for the tip; but thats not the solution I am looking for.
I want to use fetch_musername without having to use the SELECT or fetch_userinfo functions; since they add queries.
--------------- Added [DATE]1232835927[/DATE] at [TIME]1232835927[/TIME] ---------------
Let me explain what I am trying to do in further... I am using addonchat (I dumped flashchat), and AddonChat supplies its own "who's online" file on their remote server.
MINE:
http://client11.addonchat.com/scwho....in=1&id=367901
What I am doing is parsing the raw data from that file (it has two pieces of data worth drawing for vBulletin: username and userid). The first value is the username, and the fourth value is the userid. For each pull of the userid, I want to call up the musername for that userid and display it in a "Who's chatting" box. Using fetch_userinfo or a SELECT statement to get the information based on the userid; will add an extra query for EACH user who is chatting. But, there are no queries in fetch_musername; which is why I want to use that instead.