Changeset 366 for trunk/export/process_task.php
- Timestamp:
- Mar 9, 2010, 1:01:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/process_task.php
r357 r366 12 12 while(1) 13 13 { 14 $DbResult = $Database->SQLCommand('SELECT ExportTask.Export, Export.Id AS ExportId FROM ExportTask LEFT JOIN Export ON Export.Id = ExportTask.Export WHERE ExportTask.TimeFinishIS NULL');14 $DbResult = $Database->SQLCommand('SELECT `ExportTask`.`Export`, `Export`.`Id` AS `ExportId` FROM `ExportTask` LEFT JOIN `Export` ON `Export`.`Id` = `ExportTask`.`Export` WHERE `ExportTask`.`TimeFinish` IS NULL'); 15 15 while($DbRow = mysql_fetch_assoc($DbResult)) 16 16 { … … 34 34 echo('Hotovo'); 35 35 } else echo('Funkce pro tvorbu Zip souboru není podporována!'); 36 $Database->SQLCommand('UPDATE ExportTask SET TimeFinish=NOW() WHERE Export='.$Export->Id);36 $Database->SQLCommand('UPDATE `ExportTask` SET `TimeFinish`=NOW() WHERE `Export`='.$Export->Id); 37 37 } catch (Exception $e) 38 38 { … … 41 41 } else 42 42 { 43 $Database->SQLCommand('DELETE FROM ExportTask WHERE Export='.$DbRow['Export']);43 $Database->SQLCommand('DELETE FROM `ExportTask` WHERE `Export`='.$DbRow['Export']); 44 44 echo('Export '.$DbRow['Export'].' nenalezen. Jeho úloha smazána.'."\n"); 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.