The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hey.
i use these SQL command PHP Code:
but i want to use a single query instead of two i tried this: PHP Code:
plz help me |
#2
|
||||
|
||||
![]()
Perhaps something like:
PHP Code:
|
#3
|
|||
|
|||
![]()
field "ID" is in table: first (its an INT field)
field "IDs" is in table: second (its a VARCHAR field) so "ID" & "IDs" two different field in deferent table. "ID" contains a single unique number but "IDs" contain some id. i.e- 14,15,16,17,118 so i think ON is not a good idea...coz they never be equal. thats why IN must be used. plz read my both codes of first post very carefully again...so it will be clear to u & plz help me & sorry for the confusing post ![]() --------------- Added [DATE]1260613675[/DATE] at [TIME]1260613675[/TIME] --------------- hey i tried this: PHP Code:
i mean it returns just only one table although it shud show more as there r more row according to condition. |
#4
|
||||
|
||||
![]()
It could be that you want a RIGHT JOIN instead of a LEFT JOIN.
|
#5
|
|||
|
|||
![]()
not working. same result
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|