|
Is there a function to get username by id?
|
|
10-26-2008, 04:12 AM
Post: #1
|
|||
|
|||
|
Is there a function to get username by id?
Is there a built in function to already do this (in admin cp) or would it be better to use simple_query.
Do Follow Proxy Directory Watch House Now Online For Free |
|||
|
10-26-2008, 11:51 AM
Post: #2
|
|||
|
|||
|
RE: Is there a function to get username by id?
Can't remember off the top of my head, but a query is very easy to do anyway:
PHP Code: $uid = $db->fetch_field($db->simple_select('users', 'uid', 'username="'.$db->escape_string($username).'"'), 'uid'); |
|||
|
10-26-2008, 12:56 PM
Post: #3
|
|||
|
|||
|
RE: Is there a function to get username by id?
PHP Code: function get_user($uid) In functions.php Example: PHP Code: $u = get_user(1); |
|||
|
10-26-2008, 01:23 PM
Post: #4
|
|||
|
|||
|
RE: Is there a function to get username by id?
^ Oh crap, I read the title round the wrong way :/
Thanks for clearing that up
|
|||
|
10-26-2008, 03:23 PM
Post: #5
|
|||
|
|||
|
RE: Is there a function to get username by id?
Oh nice
Do Follow Proxy Directory Watch House Now Online For Free |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help





