Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Building queries
tmilovan
New
Hi,
I would like to build a display that will list only posts from certain categories but query bulding documentation is scarce. I have made everything works except selecting posts from multiple categories.
I have $Wheres array '$Wheres = array('d.CategoryID' => 5)' but dont know how to put 'OR' clause in it so I could select posts from few more categories.
Any hint appreciated .
I would like to build a display that will list only posts from certain categories but query bulding documentation is scarce. I have made everything works except selecting posts from multiple categories.
I have $Wheres array '$Wheres = array('d.CategoryID' => 5)' but dont know how to put 'OR' clause in it so I could select posts from few more categories.
Any hint appreciated .
Tagged:
0
Comments
WhereIn('d.CategoryID', array(5, 6, 7))
I'm starting to like this application very much .