Thanks, the code
else {
//$criteria = [':keywords', 'null', $_GET['query']];
$criteria = ['user__name', 'contains', $_GET['query']];
}
I would like it to also search with the previous :keywords criteria.
How can I combine the two criteria?
$criteria = [
[':keywords', 'null', $_GET['query']],
['user__name', 'contains', $_GET['query']],
];
}
$_SESSION['advsearch'][$key] = $criteria;
Work, but It does a search with AND logic, I would like it to display the results of both filters