populate $myuser with same properties as $userinfo, but for a different user
Hi
I want to create an array called $myuser with the same structure as that of $userinfo, but for a different user...
Is it as simple as $db->query_first("SELECT * FROM user WHERE userid = 123") ?
The reason I want to do this, is that I want to then test this $myuser with functions such as is_member_of, etc.
Thanks in advance.
Simon
|