![]() |
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 |
Try $myuser = $db->query_first("SELECT * FROM user WHERE userid = 123");
then your can use $myuser['username'] etc |
PHP Code:
|
Thank you Dismounted (again!:))
EnIg The problem with that method is that it doesn't include the userfields, etc. |
All times are GMT. The time now is 07:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|