Left Join in query ?
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #1
Question Left Join in query ?
Hi Zinga !

Can you please give me an hint how to use "LEFT JOIN" in sql query. sorry for such an question. I'm running an query where I could find some brief data from "users" table and then from "userfields" table. I don't want to use double query for two different tables, hence little difficult to use this "LEFT JOIN" thingy. Unlove

My present query where I am finding brief data from "users" table is;

PHP Code:
		$query = $db->simple_select("users", "username, email, regip", "uid=".intval($user_info['uid'])."");


then how to insert LEFT JOIN in their to get custom profile field value of that user?

Thanks for helping me out Yumi !


[Image: logo.png]

[Image: twitter.png]
08-23-2010 09:48 AM
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: