Changeset 455 for trunk/img_statistic.php
- Timestamp:
- Apr 13, 2010, 10:03:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r402 r455 19 19 20 20 21 $DbResult = $ Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix']);22 $ID = mysql_fetch_row($DbResult);21 $DbResult = $System->Database->query('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix']); 22 $ID = $DbResult->fetch_row(); 23 23 $BuildNumber_max = $ID[0]; 24 24 if($BuildNumber_max == '') $BuildNumber_max = 0; // Empty result, no items in this group 25 25 26 26 $where = '(`VersionEnd` = '.$BuildNumber_max.') AND (`Language` <> 0) AND (`Complete` = 1) '.$team.$language; 27 $ID = mysql_fetch_row($Database->SQLCommand('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE '.$where)); 27 $DbResult = $System->Database->query('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE '.$where); 28 $ID = $DbResult->fetch_row(); 28 29 $NumberTranslate = $ID[0]; 29 30 30 $DbResult = $ Database->SQLCommand('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE (`VersionEnd` = '.$BuildNumber_max.') AND (`Language` = 0)');31 $ID = mysql_fetch_row($DbResult);31 $DbResult = $System->Database->query('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE (`VersionEnd` = '.$BuildNumber_max.') AND (`Language` = 0)'); 32 $ID = $DbResult->fetch_row(); 32 33 $NumberAJ = $ID[0]; 33 34
Note:
See TracChangeset
for help on using the changeset viewer.