The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
comparing variable to database
Is there a simple way to compare a variable to 2 different database colums and look for a match? One in user(a) and one in post(a).
thanks. |
#2
|
|||
|
|||
SELECT user.*,post.* FROM user LEFT JOIN post on user.id = post.userid WHERE user.a = 1 OR post.a=1
|
#3
|
||||
|
||||
will give it a shot, thanks!!!!!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|