We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try this version of function filterglobal
$searchinput = $this->input('search')['value']; $allcolumns = $this->input('columns'); if ($searchinput == '') { return null; } $search = []; $searchinput = preg_replace("/\W+/", " ", $searchinput); foreach (explode(' ',$searchinput) as $word) { $lookfor = []; foreach ($this->columns as $key => $column) { if ($allcolumns[$key]['searchable'] == 'true') { $lookfor[] = $column . " LIKE " . $this->db->escape($word) . ""; } } $search[] = "(".implode(" OR ", $lookfor) . ")"; } return implode(" AND ", $search);
$searchinput = $this->input('search')['value']; $allcolumns = $this->input('columns');
if ($searchinput == '') { return null; }
$search = []; $searchinput = preg_replace("/\W+/", " ", $searchinput); foreach (explode(' ',$searchinput) as $word) { $lookfor = []; foreach ($this->columns as $key => $column) { if ($allcolumns[$key]['searchable'] == 'true') { $lookfor[] = $column . " LIKE " . $this->db->escape($word) . ""; } } $search[] = "(".implode(" OR ", $lookfor) . ")"; }
return implode(" AND ", $search);
Searches for all the words in a row.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Try this version of function filterglobal
Searches for all the words in a row.
The text was updated successfully, but these errors were encountered: