Query to get threads ?
FBI Offline
Junior Member
**
Posts: 19
Joined: Apr 2010
Post: #9
RE: Query to get threads ?
see attachments

for this query, which one should be join (change) with thread prefix Wink

PHP Code:
1
2
3
4
5
6
7
8
9
10
$thread-trend = '';	
	$query = $db->simple_select('threads', '*', "fid='35' ORDER BY tid DESC LIMIT 10");
    while($thread-trend = $db->fetch_array($query))
	{		
		if(my_strlen($thread-trend['subject']) > 55)
		{
			$thread-trend['subject'] = my_substr($thread-trend['subject'], 0, 55) . "...";
		}
		eval("\$trend .= \"".$templates->get("portal_latest_trend")."\";");
	}



Attached File(s) Thumbnail(s)
       

Brand New Portal from MyBB Indonesia  to get local Bahasa (language) support.
My Unique Plugin here Smile
(This post was last modified: 08-22-2010 01:07 AM by FBI.)
08-22-2010 01:06 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Query to get threads ? - Imran - 08-18-2010, 07:02 AM
RE: Query to get threads ? - ZiNgA BuRgA - 08-18-2010, 07:36 AM
RE: Query to get threads ? - Imran - 08-18-2010, 04:42 PM
RE: Query to get threads ? - ZiNgA BuRgA - 08-18-2010, 07:38 PM
RE: Query to get threads ? - Imran - 08-18-2010, 09:53 PM
RE: Query to get threads ? - FBI - 08-21-2010, 08:36 PM
RE: Query to get threads ? - Imran - 08-21-2010, 09:01 PM
RE: Query to get threads ? - ZiNgA BuRgA - 08-21-2010, 10:13 PM
RE: Query to get threads ? - FBI - 08-22-2010 01:06 AM
RE: Query to get threads ? - ZiNgA BuRgA - 08-22-2010, 08:44 AM
RE: Query to get threads ? - FBI - 08-22-2010, 06:19 PM
RE: Query to get threads ? - ZiNgA BuRgA - 08-22-2010, 09:54 PM

 Standard Tools
Forum Jump: