Changeset 41 for trunk/www/task.php
- Timestamp:
- Jun 16, 2009, 6:47:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/task.php
r38 r41 25 25 $DbResult = $this->Database->query('SELECT * FROM Task WHERE State = 0 ORDER BY Id,TimeCreate ASC'); 26 26 $this->Database->query('UPDATE Task SET State=2 WHERE State=1'); // Change not finished running tasks to finished 27 $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2 '); // Set end time to finished tasks27 $this->Database->query('UPDATE Task SET TimeEnd=NOW() WHERE State=2 AND TimeEnd = NULL'); // Set end time to finished tasks 28 28 while($Task = $DbResult->fetch_assoc()) 29 29 {
Note:
See TracChangeset
for help on using the changeset viewer.