if i just use where() or orwhere it fetches everything..
Please show?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I'm trying to make a search page with multiple filters (checkbox's)
The table i'm trying to search in looks like this:
name body network_id type_id country_id
my search page looks like this:
Select Type
iOS Android
Select Network
YNetworks Some New Network
Select Country America
Germany Australia
I fetch the form data in controller in the form of a array so i'm recving the " the search string "
and the checkboxes input in the form of arrays for eg: type[ 0=>1], network[ 0=>1] and country[ 0=>1,2]
how do i perform this query? if i just use where() or orwhere it fetches everything..
I want it to fetch the content only with the checked boxes, lets say the user selected iOS and Australia i only want to display the posts with iOS and Australia row only and not all the rows with iOS and Australia.
Please or to participate in this conversation.