Changeset 208 for quests/action.php
- Timestamp:
- Jan 11, 2008, 10:12:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/action.php
r204 r208 37 37 } else echo 'Ji¾ jste hlasoval!'; 38 38 } 39 39 40 if (array_key_exists('search', $_GET)) { 41 $Search = $_GET['search']; 42 43 44 $sql = "SELECT * 45 FROM `quests`.`quests` 46 WHERE `ID` LIKE '%$Search%' 47 OR `entry` LIKE '%$Search%' 48 OR `Title` LIKE CONVERT( _utf8 '%$Search%' 49 USING latin2 ) 50 COLLATE latin2_czech_cs 51 OR `Details` LIKE CONVERT( _utf8 '%$Search%' 52 USING latin2 ) 53 COLLATE latin2_czech_cs 54 OR `Objectives` LIKE CONVERT( _utf8 '%$Search%' 55 USING latin2 ) 56 COLLATE latin2_czech_cs 57 OR `OfferRewardText` LIKE CONVERT( _utf8 '%$Search%' 58 USING latin2 ) 59 COLLATE latin2_czech_cs 60 OR `RequestItemsText` LIKE CONVERT( _utf8 '%$Search%' 61 USING latin2 ) 62 COLLATE latin2_czech_cs 63 OR `EndText` LIKE CONVERT( _utf8 '%$Search%' 64 USING latin2 ) 65 COLLATE latin2_czech_cs 66 OR `ObjectiveText1` LIKE CONVERT( _utf8 '%$Search%' 67 USING latin2 ) 68 COLLATE latin2_czech_cs 69 OR `ObjectiveText2` LIKE CONVERT( _utf8 '%$Search%' 70 USING latin2 ) 71 COLLATE latin2_czech_cs 72 OR `ObjectiveText3` LIKE CONVERT( _utf8 '%$Search%' 73 USING latin2 ) 74 COLLATE latin2_czech_cs 75 OR `ObjectiveText4` LIKE CONVERT( _utf8 '%$Search%' 76 USING latin2 ) 77 COLLATE latin2_czech_cs 78 OR `Language` LIKE '%$Search%' 79 OR `Vote` LIKE '%$Search%' 80 OR `User` LIKE '%$Search%' 81 OR `complete` LIKE '%$Search%'"; 82 83 84 echo '<table border="1" cellpadding="2" cellspacing="0"> 85 <tr><th>Poøadové èíslo</th><th>ID questu</th><th>Název Questu</th><th>Poèet hlasù</th></tr>'; 86 $ID = $Database->SQLCommand($sql); 87 while ($Line = mysql_fetch_array($ID)) { 88 echo '<tr><td><a href="form.php?ID='.$Line['ID'].'">'.$Line['ID'].'</a></td> 89 <td>'.$Line['entry'].'</td> 90 <td>'.$Line['Title'].'</td> 91 <td>'.$Line['Vote'].'</td></tr>'; 92 } 93 echo '</table>'; 94 95 96 97 } 40 98 ShowFooter(); 41 99 ?>
Note:
See TracChangeset
for help on using the changeset viewer.