Changeset 249 for quests/action.php
- Timestamp:
- Jan 19, 2008, 10:51:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r240 r249 65 65 } 66 66 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_cs78 OR `Details` LIKE CONVERT( _utf8 '%$Search%'79 USING latin2 )80 COLLATE latin2_czech_cs81 OR `Objectives` LIKE CONVERT( _utf8 '%$Search%'82 USING latin2 )83 COLLATE latin2_czech_cs84 OR `OfferRewardText` LIKE CONVERT( _utf8 '%$Search%'85 USING latin2 )86 COLLATE latin2_czech_cs87 OR `RequestItemsText` LIKE CONVERT( _utf8 '%$Search%'88 USING latin2 )89 COLLATE latin2_czech_cs90 OR `EndText` LIKE CONVERT( _utf8 '%$Search%'91 USING latin2 )92 COLLATE latin2_czech_cs93 OR `ObjectiveText1` LIKE CONVERT( _utf8 '%$Search%'94 USING latin2 )95 COLLATE latin2_czech_cs96 OR `ObjectiveText2` LIKE CONVERT( _utf8 '%$Search%'97 USING latin2 )98 COLLATE latin2_czech_cs99 OR `ObjectiveText3` LIKE CONVERT( _utf8 '%$Search%'100 USING latin2 )101 COLLATE latin2_czech_cs102 OR `ObjectiveText4` LIKE CONVERT( _utf8 '%$Search%'103 USING latin2 )104 COLLATE latin2_czech_cs105 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 }125 67 ShowFooter(); 126 68 ?>
Note:
See TracChangeset
for help on using the changeset viewer.