Follow Us:
Tricked Out Mods: Forums

Best Hosting
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

block-ForumsBB3.php
 
 
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> phpBB3 Bridge
View previous topic :: View next topic  
Author Message
RebelT
Newbie
Newbie


Joined: Jan 02, 2011
Posts: 9


PostPosted: Sun Mar 20, 2011 10:43 am 
Post subject: block-ForumsBB3.php
Reply with quote

Is there a way to exclude a forum?
Code:
$sql = "SELECT t.forum_id, topic_id, topic_title FROM phpbb_topics AS t, phpbb_forums AS f WHERE f.forum_id=t.forum_id ORDER BY topic_time DESC LIMIT 10";

Thought all I needed was to insert
Code:
AND t.forum_id NOT (' 26') 

But then again, I'm very code literate. Very Happy

Thanks
  
Back to top
View user's profile Send private message
bobby
Site Admin
Site Admin


Joined: Jan 20, 2009
Posts: 779
Location: North Carolina

PostPosted: Sun Mar 20, 2011 11:57 am 
Post subject:
Reply with quote

Try this

Code:
$sql = "SELECT t.forum_id, topic_id, topic_title FROM phpbb_topics AS t, phpbb_forums AS f WHERE f.forum_id=t.forum_id AND t.forum_id != 26 ORDER BY topic_time DESC LIMIT 10";

_________________
Tricked Out News
  
Back to top
View user's profile Send private message
RebelT
Newbie
Newbie


Joined: Jan 02, 2011
Posts: 9


PostPosted: Sun Mar 20, 2011 5:48 pm 
Post subject:
Reply with quote

Thank You. Razz Head Banging
  
Back to top
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic   print    Tricked Out News Forum Index -> phpBB3 Bridge All times are GMT - 5 Hours
 
 Page 1 of 1
 
 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
Forums ©