Changeset 2572 for trunk/include/functions_search.inc.php
- Timestamp:
- Sep 23, 2008, 3:04:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_search.inc.php
r2521 r2572 300 300 * @return string 301 301 */ 302 function get_qsearch_like_clause($q, $field )302 function get_qsearch_like_clause($q, $field, $before='%', $after='%') 303 303 { 304 304 $q = stripslashes($q); … … 394 394 if ( strlen($tokens[$i])==0) 395 395 continue; 396 $clauses[] = $field.' LIKE " %'.addslashes($tokens[$i]).'%"';396 $clauses[] = $field.' LIKE "'.$before.addslashes($tokens[$i]).$after.'"'; 397 397 } 398 398
Note: See TracChangeset
for help on using the changeset viewer.