Search with LIKE-Operator – with spaces

QuestionsSearch with LIKE-Operator – with spaces
Mario asked 8 years ago

Is it possible to make the simple or advanced search, that its more tolerant towards empty spaces? Imagine one copies a word and has spaces in it, then the search is not working. Is it possible to "trim" the input automaticly before, since not everybody removes spaces before searching…

1 Answers
Abu Ghufran answered 8 years ago

You can search and update this line in jqgrid_dist.php

$v = $val['data'];

to

$v = trim($val['data']);

Your Answer

18 + 17 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?