Changeset 455 for trunk/export/process_aowow_export.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/process_aowow_export.php
r377 r455 16 16 // Rebuild user selection 17 17 $UserSelection = array(); 18 $DbResult = $ Database->SQLCommand('SELECT `ID`, `XP` FROM `User`');19 while($DbRow = mysql_fetch_assoc($DbResult))18 $DbResult = $System->Database->query('SELECT `ID`, `XP` FROM `User`'); 19 while($DbRow = $DbResult->fetch_assoc()) 20 20 { 21 21 $UserSelection[$DbRow['ID']] = $DbRow['XP']; … … 27 27 foreach($UserSelection as $ID => $XP) 28 28 { 29 $DbResult = $ Database->SQLCommand('SELECT `Id` FROM `ExportUser` WHERE `Export` = '.$Config['AoWoWExportId'].' AND `User` = '.$ID);30 if( mysql_num_rows($DbResult)> 0)29 $DbResult = $System->Database->query('SELECT `Id` FROM `ExportUser` WHERE `Export` = '.$Config['AoWoWExportId'].' AND `User` = '.$ID); 30 if($DbResult->num_rows > 0) 31 31 $Query = 'UPDATE `ExportUser` SET `Sequence` = '.$Sequence.' WHERE `Export` = '.$Config['AoWoWExportId'].' AND `User` = '.$ID; 32 32 else $Query = 'INSERT INTO `ExportUser` (`Export`, `User`, `Sequence`) VALUES ('.$Config['AoWoWExportId'].', '.$ID.', '.$Sequence.')'; 33 $ Database->SQLCommand($Query);33 $System->Database->query($Query); 34 34 $Sequence++; 35 35 }
Note:
See TracChangeset
for help on using the changeset viewer.