Changeset 220 for quests/priorite.php
- Timestamp:
- Jan 13, 2008, 11:25:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/priorite.php
r219 r220 5 5 $Database->SQLCommand("TRUNCATE TABLE `quests`.quests_status"); 6 6 7 //plnìní entry7 /* //plnìní entry 8 8 $ID = $Database->SQLCommand("SELECT entry FROM `quests`.`quests` WHERE Language = 0"); 9 9 while ($Line = mysql_fetch_array($ID)) { … … 14 14 } 15 15 16 echo 'Nahrávání ID questù hotovo<br />'; 16 echo 'Nahrávání ID questù hotovo<br /> 17 '; 18 */ 19 //Plnìní poètu 20 $ID = $Database->SQLCommand("SELECT DISTINCT(quest) as QuestEntry, COUNT(*) as QuestCount FROM `".$Config['Database']['DatabaseCharacters']."`.`character_queststatus` GROUP BY quest"); 21 while ($Line = mysql_fetch_array($ID)) { 22 echo 'Poèet Q pro '.$Line['QuestEntry'].'/11558 hotov <br /> 23 '; 24 $Database->SQLCommand("INSERT INTO `quests`.`quests_status` ( `QuestEntry`, `CountQuest`) VALUES ( '".$Line['QuestEntry']."','".$Line['QuestCount']."')"); 25 // echo 'Poèet Q pro '.$QuestEntry.'/11558 hotov <br /> 26 } 27 28 echo 'Nahrávání poètu questù od ú¾ivatelù<br /> 17 29 30 '; 18 31 //mazání pøelo¾ených Q 19 32 $ID = $Database->SQLCommand("SELECT entry FROM `quests`.`quests` WHERE Language <> 0 AND Complete = 1"); … … 25 38 } 26 39 27 echo 'Mazání pøelo¾ených ve statusu hotovo<br />'; 40 echo 'Mazání pøelo¾ených ve statusu hotovo<br /> 41 '; 28 42 29 //Plnìní poètu30 $ID = $Database->SQLCommand("SELECT QuestEntry FROM `quests_status`");31 while ($Line = mysql_fetch_array($ID)) {32 $QuestEntry = $Line['QuestEntry'];33 // echo "UPDATE `quests_status` SET CountQuest = (SELECT Count(quest) FROM `".$Config['Database']['DatabaseCharacters']."`.`character_queststatus` WHERE quest = '$QuestEntry')";34 $Database->SQLCommand("UPDATE `quests_status` SET CountQuest =35 (SELECT Count(quest) FROM `".$Config['Database']['DatabaseCharacters']."`.`character_queststatus` WHERE quest = '$QuestEntry')36 WHERE QuestEntry = '$QuestEntry'");37 }38 39 echo 'Nahrávání poètu questù od ú¾ivatelù<br />';40 43 41 44
Note:
See TracChangeset
for help on using the changeset viewer.