![]() |
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. |
SELECT user.*,post.* FROM user LEFT JOIN post on user.id = post.userid WHERE user.a = 1 OR post.a=1
|
will give it a shot, thanks!!!!!
|
All times are GMT. The time now is 07:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|