Changeset 19 for trunk/include/functions_category.inc.php
- Timestamp:
- May 27, 2003, 10:56:13 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_category.inc.php
r17 r19 406 406 $sql_search = array(); 407 407 foreach ( $words as $i => $word ) { 408 // if the user searchs any of the words, the where statement must 409 // be : 410 // field1 LIKE '%$word1%' OR field2 LIKE '%$word1%' ... 411 // OR field1 LIKE '%$word2%' OR field2 LIKE '%$word2%' ... 408 412 if ( $_GET['mode'] == 'OR' ) 409 413 { … … 414 418 } 415 419 } 420 // if the user searchs all the words : 421 // ( field1 LIKE '%$word1%' OR field2 LIKE '%$word1%' ) 422 // AND ( field1 LIKE '%$word2%' OR field2 LIKE '%$word2%' ) 416 423 else if ( $_GET['mode'] == 'AND' ) 417 424 {
Note: See TracChangeset
for help on using the changeset viewer.