Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Filtering Thread By Thread Author
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #12
RE: Filtering Thread By Thread Author
Hi RateU, this is the code I tried:

Code:
1
2
3
4
5
6
7
8
9
		$query = $db->query('
			SELECT t.*, f.name, a.updatetime, a.md5hash, a.uploadtime, a.aid, a.attachname, a.filename
			FROM '.TABLE_PREFIX.'threads t
			LEFT JOIN '.TABLE_PREFIX.'xtattachments a ON (a.tid=t.tid)
			LEFT JOIN '.TABLE_PREFIX.'forums f ON (f.fid=t.fid)
			WHERE t.visible=1 AND t.uid='.intval($memprofile['uid']).' AND closed NOT LIKE "moved|%" AND t.fid IN ('.implode(',', $mnxtigp_fid_array).')'.$mnxtigp_unviewwhere.'
			'.$mnxtigp_lr.'
			GROUP BY a.tid
			LIMIT 0,'.intval($mybb->settings['mnxtigp_num']).'


But its giving me a syntax error. I tried putting the group thing in other places in the code but failed :/



[Image: leelink.gif]
MYBB1.6 & XThreads
08-15-2010 07:10 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
Filtering Thread By Thread Author - RateU - 08-10-2010, 11:37 AM
RE: Filtering Thread By Thread Author - leefish - 08-15-2010 07:10 AM

 Standard Tools
Forum Jump: