Better search
This commit is contained in:
parent
e5fcc48b05
commit
3583fdd333
@ -98,7 +98,7 @@ class FieldsController extends Zend_Controller_Action
|
||||
$i = 0;
|
||||
foreach ($queries as $item) {
|
||||
if (strlen($item)>2) {
|
||||
$where = 'LIKE "%'.strtolower($item).'%"';
|
||||
$where.= 'LIKE "%'.strtolower($item).'%"';
|
||||
}
|
||||
$i++;
|
||||
if (count($queries) < $i){
|
||||
@ -123,7 +123,7 @@ class FieldsController extends Zend_Controller_Action
|
||||
$i = 0;
|
||||
foreach ($queries as $item) {
|
||||
if (strlen($item)>2) {
|
||||
$where = 'LIKE "%'.strtolower($item).'%"';
|
||||
$where.= 'LIKE "%'.strtolower($item).'%"';
|
||||
}
|
||||
$i++;
|
||||
if (count($queries) < $i){
|
||||
@ -148,7 +148,7 @@ class FieldsController extends Zend_Controller_Action
|
||||
$i = 0;
|
||||
foreach ($queries as $item) {
|
||||
if (strlen($item)>2) {
|
||||
$where = 'LIKE "'.strtolower($item).'"';
|
||||
$where.= 'LIKE "%'.strtolower($item).'%"';
|
||||
}
|
||||
$i++;
|
||||
if (count($queries) < $i){
|
||||
@ -217,7 +217,6 @@ class FieldsController extends Zend_Controller_Action
|
||||
}
|
||||
$this->view->assign('output', $output);
|
||||
}
|
||||
|
||||
|
||||
public function checkvalue(){}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user