The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
$threads in FORUMDISPLAY and DISTINCT ?
So, I made modifications for a hack and I need 2 more fields I'd like to get with this query :
PHP Code:
I need these fields : nb_install and userid from tables hacks and hacksinstall, so I modify to have : PHP Code:
How to do so that I get back them only once ? Thanks by advance |
#2
|
|||
|
|||
You answered your own question in the subject: use SELECT DISTINCT instead of SELECT to avoid duplicate rows, although often the solution lies in refining the query itself.
|
#3
|
||||
|
||||
Ok, I'll try using a DISTINCT on threadid so
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|