Ignore:
Timestamp:
May 27, 2003, 10:56:13 PM (21 years ago)
Author:
z0rglub
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_category.inc.php

    r17 r19  
    406406        $sql_search = array();
    407407        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%' ...
    408412          if ( $_GET['mode'] == 'OR' )
    409413          {
     
    414418            }
    415419          }
     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%' )
    416423          else if ( $_GET['mode'] == 'AND' )
    417424          {
Note: See TracChangeset for help on using the changeset viewer.