The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
MyChenQL, part whatever I last used plus 1
[sql]
SELECT s.title, u.styleid, COUNT(u.styleid) FROM style s, user u WHERE s.styleid = u.styleid GROUP BY u.styleid; [/sql] ...returns: Code:
+-----------+---------+-------+ | title | styleid | total | +-----------+---------+-------+ | Default | 1 | 616 | | New Cubed | 7 | 1 | +-----------+---------+-------+ 2 rows in set (0.01 sec) |
#2
|
||||
|
||||
Can you stick an OR in a mysql statement?
- miSt |
#3
|
||||
|
||||
depends on where
i haven't found a way for that, everyway i tried ends with two queries or doesn't work at all |
#4
|
|||
|
|||
NM, I just copied Chen's. He used joins which I haven't learned yet and I really should.
|
#5
|
||||
|
||||
hmm, should have a look into his code, my try with joins didn't work
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|