Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Feb 2006, 21:13
Kayn's Avatar
Kayn Kayn is offline
 
Join Date: Nov 2001
Real name: Rob!
Talking Getting latest posts problem...

I'm not a total slouch when it comes to SQL, but I am stumped on this one.

I'm pulling the latest 10 posts out of the post table in vB in a specific forum, however it's not actually pulling the latest 10 posts. I went and posted a new thread, and responded to other threads (as did other members), but it's sticking to the same results.

Here's the query:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here's what it's outputting - http://pluh.com/index.php (look on the right side where it has "last 10 posts"

And here are the forums - http://pluh.com/forums

The Pluh Bored is the forum I'm pulling from here (id = 1). Why why why does this not work? Any insight?

Thanks!
Reply With Quote
  #2  
Old 04 Feb 2006, 21:17
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Could it maybe be that you are only retrieving post with an icon set?

I suggest you change the use of the icon & thread tables to LEFT JOINS.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 04 Feb 2006, 21:19
Kayn's Avatar
Kayn Kayn is offline
 
Join Date: Nov 2001
Real name: Rob!
Hmm, good point. Do you have an example (I am not familiar with joins... as I should be). Thanks!
Reply With Quote
  #4  
Old 04 Feb 2006, 21:27
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #5  
Old 04 Feb 2006, 21:33
Kayn's Avatar
Kayn Kayn is offline
 
Join Date: Nov 2001
Real name: Rob!
Wow, thanks. Works extremely well now.

I have a lot to learn about joins and SQL in general.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:16.

Layout Options | Width: Wide Color: