Changeset 611 for trunk/inc/server.php
- Timestamp:
- Aug 7, 2009, 10:48:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/inc/server.php
r609 r611 103 103 global $Config; 104 104 105 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 106 $row = $this->db->query('SELECT COUNT(*) FROM characters')->fetch_row(); 107 return($row[0]); 105 $this->db->select_db($Config['Mangos']['RealmList'][$RealmId]['DatabaseCharacters']); 106 $DbResult = $this->db->query('SELECT COUNT(*) FROM `characters`'); 107 $DbRow = $DbResult->fetch_row(); 108 return($DbRow[0]); 108 109 } 109 110
Note:
See TracChangeset
for help on using the changeset viewer.