how to get uid from username
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #1
how to get uid from username
how to get uid from username??
Not the current logged in user..

[Image: banner.png]
09-10-2010 04:24 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: how to get uid from username

PHP Code:
$username = 'teddy bear';
$uid = $db->fetch_field($db->simple_select('users', 'uid', 'username="'.$db->escape_string($username).'"'), 'uid');


My Blog
09-10-2010 04:55 PM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #3
RE: how to get uid from username
thank you mate...

[Image: banner.png]
09-10-2010 05:37 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: