Changeset 249 for quests/action.php


Ignore:
Timestamp:
Jan 19, 2008, 10:51:11 PM (17 years ago)
Author:
maron
Message:

Ve vyhledávání pouze uživatelé, kteří mají questy, vyhledávání podle ID questu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/action.php

    r240 r249  
    6565  }
    6666
    67   if (array_key_exists('search', $_GET)) {
    68     $Search = $_GET['search'];
    69  
    70  
    71   $sql = "SELECT *
    72 FROM `quests`.`quests`
    73 WHERE `ID` LIKE '%$Search%'
    74 OR `entry` LIKE '%$Search%'
    75 OR `Title` LIKE CONVERT( _utf8 '%$Search%'
    76 USING latin2 )
    77 COLLATE latin2_czech_cs
    78 OR `Details` LIKE CONVERT( _utf8 '%$Search%'
    79 USING latin2 )
    80 COLLATE latin2_czech_cs
    81 OR `Objectives` LIKE CONVERT( _utf8 '%$Search%'
    82 USING latin2 )
    83 COLLATE latin2_czech_cs
    84 OR `OfferRewardText` LIKE CONVERT( _utf8 '%$Search%'
    85 USING latin2 )
    86 COLLATE latin2_czech_cs
    87 OR `RequestItemsText` LIKE CONVERT( _utf8 '%$Search%'
    88 USING latin2 )
    89 COLLATE latin2_czech_cs
    90 OR `EndText` LIKE CONVERT( _utf8 '%$Search%'
    91 USING latin2 )
    92 COLLATE latin2_czech_cs
    93 OR `ObjectiveText1` LIKE CONVERT( _utf8 '%$Search%'
    94 USING latin2 )
    95 COLLATE latin2_czech_cs
    96 OR `ObjectiveText2` LIKE CONVERT( _utf8 '%$Search%'
    97 USING latin2 )
    98 COLLATE latin2_czech_cs
    99 OR `ObjectiveText3` LIKE CONVERT( _utf8 '%$Search%'
    100 USING latin2 )
    101 COLLATE latin2_czech_cs
    102 OR `ObjectiveText4` LIKE CONVERT( _utf8 '%$Search%'
    103 USING latin2 )
    104 COLLATE latin2_czech_cs
    105 OR `Language` LIKE '%$Search%'
    106 OR `Vote` LIKE '%$Search%'
    107 OR `User` LIKE '%$Search%'
    108 OR `complete` LIKE '%$Search%'";
    109 
    110  
    111         echo '<table border="1" cellpadding="2" cellspacing="0">
    112               <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet hlasù</th></tr>';
    113         $ID = $Database->SQLCommand($sql);
    114           while ($Line = mysql_fetch_array($ID)) {
    115             echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td>
    116             <td>'.$Line['entry'].'</td>
    117             <td>'.$Line['Title'].'</td>
    118             <td>'.$Line['Vote'].'</td></tr>';
    119           }
    120         echo '</table>'; 
    121  
    122  
    123  
    124   }       
    12567  ShowFooter();     
    12668?>
Note: See TracChangeset for help on using the changeset viewer.