Limit SQL query by users
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #1
Limit SQL query by users

SQL Code
1
2
3
4
5
6
7
8
				$query = $db->query('
					SELECT a.aid, a.name, a.image, p.uid
					FROM '.TABLE_PREFIX.'ougc_awards a
					JOIN '.TABLE_PREFIX.'ougc_awards_users ag ON (ag.aid=a.aid)
					JOIN '.TABLE_PREFIX.'posts p ON (p.uid=ag.uid)
					WHERE p.'.$pids.' AND a.visible=\'1\' AND a.type!=\'1\'
					ORDER BY ag.date desc'
				);


i want to limit the number of rows by UID, how?

xD

Now seriously, I have no idea. Some clue please?


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
12-14-2012 06:36 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
Limit SQL query by users - Sama34 - 12-14-2012 06:36 PM
RE: Limit SQL query by users - ZiNgA BuRgA - 12-14-2012, 09:19 PM
RE: Limit SQL query by users - Sama34 - 12-18-2012, 12:23 PM
RE: Limit SQL query by users - Sama34 - 12-19-2012, 06:16 PM
RE: Limit SQL query by users - ZiNgA BuRgA - 12-19-2012, 10:02 PM

 Standard Tools
Forum Jump: