forumSolution
Active member
Hey,
I want to write a query on xenforo that will have both operator AND , OR .
If i use $item->where() then it will use only AND .. but if use $item->where()->whereOr(). Then it will wrap all OR condition in AND .
Is there anyway i can write something like that .
Select * from zyx where abc=1 and zzz=2 and bbb=3 or rrr in(10)
Please guide me
Thanks
I want to write a query on xenforo that will have both operator AND , OR .
If i use $item->where() then it will use only AND .. but if use $item->where()->whereOr(). Then it will wrap all OR condition in AND .
Is there anyway i can write something like that .
Select * from zyx where abc=1 and zzz=2 and bbb=3 or rrr in(10)
Please guide me
Thanks