Left Join in query ?
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #3
RE: Left Join in query ?
OK. I used following query;

PHP Code:
$query = $db->query("
		SELECT u.uid, u.username, u.usergroup, u.email, regip, uid=".intval($user_info['uid'])."
		FROM ".TABLE_PREFIX."users u
		LEFT JOIN ".TABLE_PREFIX."userfields f ON u.uid=f.ufid
	");


It gets data from users table but userfields / custmom profile field's value remains empty...

What's going wrong with me Yumi ?


[Image: logo.png]

[Image: twitter.png]
08-23-2010 06:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Left Join in query ? - Imran - 08-23-2010, 09:48 AM
RE: Left Join in query ? - ZiNgA BuRgA - 08-23-2010, 12:28 PM
RE: Left Join in query ? - Imran - 08-23-2010 06:11 PM
RE: Left Join in query ? - ZiNgA BuRgA - 08-23-2010, 06:28 PM
RE: Left Join in query ? - Imran - 08-23-2010, 06:40 PM

 Standard Tools
Forum Jump: