The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Pulling a specific number of threads from each forum.. can it be done in one query?
What I need to do, is write a query that pulls the latest 4 threadids out of a specified list of forumids individually.
So basically, if I was specifying forumids 1 and 2, the query would display two lists of the four latest threadids from those forums. The output at the mysql console would look something like this Code:
Forumid |Threadid 1 |12 1 |11 1 |9 1 |7 2 |13 2 |10 2 |8 2 |6 Thanks |
#2
|
||||
|
||||
PHP Code:
|
#3
|
||||
|
||||
The problem with that query is that I want the 4 latest threads from each forum... that query takes the 4 latest threads aggregated together from both forums.
If two forums are specified, the query should return 8 values - 4 threads from the first forum, and 4 threads from the second forum. I haven't been able to figure out how to do this without running a seperate query for each forum. Thanks for the reply anyway. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|